webhook-poddisruptionbudget.yaml 787 B

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