| 123456789101112131415161718 |
- {{- if and .Values.certController.create .Values.certController.podDisruptionBudget.enabled (not .Values.webhook.certManager.enabled) }}
- apiVersion: policy/v1
- kind: PodDisruptionBudget
- metadata:
- name: {{ include "external-secrets.certControllerPdbName" . | quote }}
- namespace: {{ template "external-secrets.namespace" . }}
- labels:
- {{- include "external-secrets-cert-controller.labels" . | nindent 4 }}
- spec:
- {{- if .Values.certController.podDisruptionBudget.maxUnavailable }}
- maxUnavailable: {{ .Values.certController.podDisruptionBudget.maxUnavailable }}
- {{- else if .Values.certController.podDisruptionBudget.minAvailable }}
- minAvailable: {{ .Values.certController.podDisruptionBudget.minAvailable }}
- {{- end }}
- selector:
- matchLabels:
- {{- include "external-secrets-cert-controller.selectorLabels" . | nindent 6 }}
- {{- end }}
|