Skip to content

Commit

Permalink
fix pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
lobiyedKarim1 committed Nov 28, 2023
1 parent 1321c6a commit b6ef813
Showing 1 changed file with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
{{- if and .Values.deployment.enabled .Values.podDisruptionBudget -}}
{%- if deployment.enabled and podDisruptionBudget -%}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ template "coredns.fullname" . }}
labels: {{- include "coredns.labels" . | nindent 4 }}
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 4 }}
{{- end }}
{{- with .Values.customAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
name: coredns{{ coredns_ordinal_suffix }}
spec:
maxUnavailable: 1
maxUnavailable: {{ max_unavailable }}
selector:
matchLabels:
app.kubernetes.io/instance: {{ .Release.Name | quote }}
{{- if .Values.isClusterService }}
k8s-app: {{ template "coredns.k8sapplabel" . }}
{{- end }}
app.kubernetes.io/name: {{ template "coredns.name" . }}
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
{{- end }}
{{- end }}
k8s-app: kube-dns{{ coredns_ordinal_suffix }}

0 comments on commit b6ef813

Please sign in to comment.