github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/thanos/templates/query-frontend/pdb.yaml (about) 1 {{- if and .Values.queryFrontend.enabled .Values.queryFrontend.pdb.create }} 2 apiVersion: {{ include "common.capabilities.policy.apiVersion" . }} 3 kind: PodDisruptionBudget 4 metadata: 5 name: {{ include "common.names.fullname" . }}-query-frontend 6 namespace: {{ .Release.Namespace | quote }} 7 labels: {{- include "common.labels.standard" . | nindent 4 }} 8 app.kubernetes.io/component: query-frontend 9 {{- if .Values.commonLabels }} 10 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 11 {{- end }} 12 {{- if .Values.commonAnnotations }} 13 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 14 {{- end }} 15 spec: 16 {{- if .Values.queryFrontend.pdb.minAvailable }} 17 minAvailable: {{ .Values.queryFrontend.pdb.minAvailable }} 18 {{- end }} 19 {{- if .Values.queryFrontend.pdb.maxUnavailable }} 20 maxUnavailable: {{ .Values.queryFrontend.pdb.maxUnavailable }} 21 {{- end }} 22 selector: 23 matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} 24 app.kubernetes.io/component: query-frontend 25 {{- end }}