-
Notifications
You must be signed in to change notification settings - Fork 46
feat: Add API and Frontend PDB #371
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
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,20 @@ | ||
| {{- if .Values.pdb.api.enabled }} | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| namespace: {{ .Release.Namespace }} | ||
|
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. The rest of the chart uses Please switch to the helper for consistency. |
||
| name: {{ template "flagsmith.fullname" . }}-api-pdb | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| {{- include "flagsmith.selectorLabels" . | nindent 6 }} | ||
| app.kubernetes.io/component: api | ||
| {{- if and .Values.pdb.api.minAvailable (not (hasKey .Values.pdb.api "maxUnavailable")) }} | ||
| minAvailable: {{ .Values.pdb.api.minAvailable }} | ||
| {{- else if .Values.pdb.api.maxUnavailable }} | ||
|
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. Setting |
||
| maxUnavailable: {{ .Values.pdb.api.maxUnavailable }} | ||
| {{- end }} | ||
| {{- if .Values.pdb.api.unhealthyPodEvictionPolicy }} | ||
| unhealthyPodEvictionPolicy: {{ .Values.pdb.api.unhealthyPodEvictionPolicy }} | ||
| {{- end }} | ||
| {{- end }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| {{- if .Values.pdb.frontend.enabled }} | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| namespace: {{ .Release.Namespace }} | ||
| name: {{ template "flagsmith.fullname" . }}-frontend-pdb | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| {{- include "flagsmith.selectorLabels" . | nindent 6 }} | ||
| app.kubernetes.io/component: frontend | ||
| {{- if and .Values.pdb.frontend.minAvailable (not (hasKey .Values.pdb.frontend "maxUnavailable")) }} | ||
| minAvailable: {{ .Values.pdb.frontend.minAvailable }} | ||
| {{- else if .Values.pdb.frontend.maxUnavailable }} | ||
|
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. Setting |
||
| maxUnavailable: {{ .Values.pdb.frontend.maxUnavailable }} | ||
| {{- end }} | ||
| {{- if .Values.pdb.frontend.unhealthyPodEvictionPolicy }} | ||
| unhealthyPodEvictionPolicy: {{ .Values.pdb.frontend.unhealthyPodEvictionPolicy }} | ||
| {{- end }} | ||
| {{- end }} | ||
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.
Other resources in the chart include standard labels in their metadata block. The PDB templates are missing them. Could you add them so they're consistent with the rest of the chart?