pdb.yaml 926 B

1234567891011121314151617181920212223
  1. {{- if .Values.pdb.create }}
  2. apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ template "common.names.fullname" . }}
  6. namespace: {{ .Release.Namespace | quote }}
  7. labels: {{- include "common.labels.standard" . | nindent 4 }}
  8. {{- if .Values.commonLabels }}
  9. {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
  10. {{- end }}
  11. {{- if .Values.commonAnnotations }}
  12. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  13. {{- end }}
  14. spec:
  15. {{- if .Values.pdb.minAvailable }}
  16. minAvailable: {{ .Values.pdb.minAvailable }}
  17. {{- end }}
  18. {{- if .Values.pdb.maxUnavailable }}
  19. maxUnavailable: {{ .Values.pdb.maxUnavailable }}
  20. {{- end }}
  21. selector:
  22. matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
  23. {{- end }}