-
Notifications
You must be signed in to change notification settings - Fork 68
🐛 add PDB to make sure at least 1 pod is always available during upgrade #2362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| {{- if .Values.options.catalogd.enabled }} | ||
| {{- if .Values.options.catalogd.podDisruptionBudget.enabled }} | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: catalogd-controller-manager | ||
| namespace: {{ .Values.namespaces.olmv1.name }} | ||
| labels: | ||
| app.kubernetes.io/name: catalogd | ||
| {{- include "olmv1.labels" . | nindent 4 }} | ||
| annotations: | ||
| {{- include "olmv1.annotations" . | nindent 4 }} | ||
| spec: | ||
| {{- if .Values.options.catalogd.podDisruptionBudget.minAvailable }} | ||
| minAvailable: {{ .Values.options.catalogd.podDisruptionBudget.minAvailable }} | ||
| {{- end }} | ||
| {{- if .Values.options.catalogd.podDisruptionBudget.maxUnavailable }} | ||
| maxUnavailable: {{ .Values.options.catalogd.podDisruptionBudget.maxUnavailable }} | ||
| {{- end }} | ||
| selector: | ||
| matchLabels: | ||
| control-plane: catalogd-controller-manager | ||
| {{- end }} | ||
| {{- end }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| {{- if .Values.options.operatorController.enabled }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same comments as for the other pdb. |
||
| {{- if .Values.options.operatorController.podDisruptionBudget.enabled }} | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: operator-controller-controller-manager | ||
| namespace: {{ .Values.namespaces.olmv1.name }} | ||
| labels: | ||
| app.kubernetes.io/name: operator-controller | ||
| {{- include "olmv1.labels" . | nindent 4 }} | ||
| annotations: | ||
| {{- include "olmv1.annotations" . | nindent 4 }} | ||
| spec: | ||
| {{- if .Values.options.operatorController.podDisruptionBudget.minAvailable }} | ||
| minAvailable: {{ .Values.options.operatorController.podDisruptionBudget.minAvailable }} | ||
| {{- end }} | ||
| {{- if .Values.options.operatorController.podDisruptionBudget.maxUnavailable }} | ||
| maxUnavailable: {{ .Values.options.operatorController.podDisruptionBudget.maxUnavailable }} | ||
| {{- end }} | ||
| selector: | ||
| matchLabels: | ||
| control-plane: operator-controller-controller-manager | ||
| {{- end }} | ||
| {{- end }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,9 @@ options: | |
| features: | ||
| enabled: [] | ||
| disabled: [] | ||
| podDisruptionBudget: | ||
| enabled: true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nit]: perhaps would be better to name it
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. However, all the other options are named
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, is there a reason for this option, and not just create it based on |
||
| minAvailable: 1 | ||
| catalogd: | ||
| enabled: true | ||
| deployment: | ||
|
|
@@ -20,6 +23,9 @@ options: | |
| features: | ||
| enabled: [] | ||
| disabled: [] | ||
| podDisruptionBudget: | ||
| enabled: true | ||
| minAvailable: 1 | ||
| certManager: | ||
| enabled: false | ||
| e2e: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]: perhaps we can combine these two into single
if