Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions charts/flux2/templates/helm-controller-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.helmController.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: helm-controller
spec:
{{- with .Values.helmController.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.helmController.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: helm-controller
{{- end }}
16 changes: 16 additions & 0 deletions charts/flux2/templates/image-automation-controller-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.imageAutomationController.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: image-automation-controller
spec:
{{- with .Values.imageAutomationController.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.imageAutomationController.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: image-automation-controller
{{- end }}
16 changes: 16 additions & 0 deletions charts/flux2/templates/image-reflector-controller-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.imageReflectionController.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: image-reflector-controller
spec:
{{- with .Values.imageReflectionController.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.imageReflectionController.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: image-reflector-controller
{{- end }}
16 changes: 16 additions & 0 deletions charts/flux2/templates/kustomize-controller-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.kustomizeController.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: kustomize-controller
spec:
{{- with .Values.kustomizeController.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.kustomizeController.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: kustomize-controller
{{- end }}
16 changes: 16 additions & 0 deletions charts/flux2/templates/notification-controller-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.notificationController.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: notification-controller
spec:
{{- with .Values.notificationController.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.notificationController.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: notification-controller
{{- end }}
16 changes: 16 additions & 0 deletions charts/flux2/templates/source-controller-pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.sourceController.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: source-controller
spec:
{{- with .Values.sourceController.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.sourceController.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: source-controller
{{- end }}
19 changes: 18 additions & 1 deletion charts/flux2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ helmController:
automount: true
annotations: {}
imagePullPolicy: {}
podDisruptionBudget: {}
# minAvailable: 1
# maxUnavailable: 1
nodeSelector: {}
# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#affinity-v1-core
# for example:
Expand Down Expand Up @@ -102,6 +105,9 @@ imageAutomationController:
automount: true
annotations: {}
imagePullPolicy: {}
podDisruptionBudget: {}
# minAvailable: 1
# maxUnavailable: 1
nodeSelector: {}
affinity: {}
tolerations: []
Expand Down Expand Up @@ -130,6 +136,9 @@ imageReflectionController:
automount: true
annotations: {}
imagePullPolicy: {}
podDisruptionBudget: {}
# minAvailable: 1
# maxUnavailable: 1
nodeSelector: {}
affinity: {}
tolerations: []
Expand Down Expand Up @@ -177,7 +186,9 @@ kustomizeController:
# subPath: ""
# secretName: secret-files
# readOnly: true

podDisruptionBudget: {}
# minAvailable: 1
# maxUnavailable: 1
nodeSelector: {}
affinity: {}
tolerations: []
Expand Down Expand Up @@ -213,6 +224,9 @@ notificationController:
service:
labels: {}
annotations: {}
podDisruptionBudget: {}
# minAvailable: 1
# maxUnavailable: 1
nodeSelector: {}
affinity: {}
tolerations: []
Expand Down Expand Up @@ -243,6 +257,9 @@ sourceController:
service:
labels: {}
annotations: {}
podDisruptionBudget: {}
# minAvailable: 1
# maxUnavailable: 1
nodeSelector: {}
affinity: {}
tolerations: []
Expand Down