webhook-poddisruptionbudget.yaml 795 B

12345678910111213141516171819
  1. {{- if and .Values.webhook.create .Values.webhook.podDisruptionBudget.enabled }}
  2. apiVersion: policy/v1
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ include "external-secrets.webhookPdbName" . | quote }}
  6. namespace: {{ template "external-secrets.namespace" . }}
  7. labels:
  8. {{- include "external-secrets-webhook.labels" . | nindent 4 }}
  9. external-secrets.io/component: webhook
  10. spec:
  11. {{- if .Values.webhook.podDisruptionBudget.maxUnavailable }}
  12. maxUnavailable: {{ .Values.webhook.podDisruptionBudget.maxUnavailable }}
  13. {{- else if .Values.webhook.podDisruptionBudget.minAvailable }}
  14. minAvailable: {{ .Values.webhook.podDisruptionBudget.minAvailable }}
  15. {{- end }}
  16. selector:
  17. matchLabels:
  18. {{- include "external-secrets-webhook.selectorLabels" . | nindent 6 }}
  19. {{- end }}