mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/argo-workflows] Enable PodDisruptionBudgets (#26595)
* [bitnami/argo-workflows] Enable PodDisruptionBudgets Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Apply suggestions Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> --------- Signed-off-by: Fran Mulero <fmulero@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 9.0.3 (2024-06-05)
|
## 9.1.0 (2024-06-05)
|
||||||
|
|
||||||
* [bitnami/argo-workflows] Bump chart version ([#26764](https://github.com/bitnami/charts/pull/26764))
|
* [bitnami/argo-workflows] Enable PodDisruptionBudgets ([#26595](https://github.com/bitnami/charts/pull/26595))
|
||||||
|
|
||||||
|
## <small>9.0.3 (2024-06-05)</small>
|
||||||
|
|
||||||
|
* [bitnami/argo-workflows] Bump chart version (#26764) ([3ad8f3b](https://github.com/bitnami/charts/commit/3ad8f3bd66903b2f844698f8bdfd21d58c8a2385)), closes [#26764](https://github.com/bitnami/charts/issues/26764)
|
||||||
|
|
||||||
## <small>9.0.2 (2024-06-05)</small>
|
## <small>9.0.2 (2024-06-05)</small>
|
||||||
|
|
||||||
|
|||||||
@@ -42,4 +42,4 @@ maintainers:
|
|||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/bitnami/charts/tree/main/bitnami/argo-workflows
|
- https://github.com/bitnami/charts/tree/main/bitnami/argo-workflows
|
||||||
version: 9.0.3
|
version: 9.1.0
|
||||||
|
|||||||
@@ -283,9 +283,9 @@ As an alternative, use one of the preset configurations for pod affinity, pod an
|
|||||||
| `server.auth.sso.scopes` | Scopes requested from the SSO ID provider | `[]` |
|
| `server.auth.sso.scopes` | Scopes requested from the SSO ID provider | `[]` |
|
||||||
| `server.clusterWorkflowTemplates.enabled` | Create ClusterRole and CRB for the controoler to access ClusterWorkflowTemplates | `true` |
|
| `server.clusterWorkflowTemplates.enabled` | Create ClusterRole and CRB for the controoler to access ClusterWorkflowTemplates | `true` |
|
||||||
| `server.clusterWorkflowTemplates.enableEditing` | Give the server permissions to edit ClusterWorkflowTemplates | `true` |
|
| `server.clusterWorkflowTemplates.enableEditing` | Give the server permissions to edit ClusterWorkflowTemplates | `true` |
|
||||||
| `server.pdb.enabled` | Create Pod Disruption Budget for the server component | `false` |
|
| `server.pdb.enabled` | Create Pod Disruption Budget for the server component | `true` |
|
||||||
| `server.pdb.minAvailable` | Sets the min number of pods availables for the Pod Disruption Budget | `1` |
|
| `server.pdb.minAvailable` | Sets the min number of pods availables for the Pod Disruption Budget | `""` |
|
||||||
| `server.pdb.maxUnavailable` | Sets the max number of pods unavailable for the Pod Disruption Budget | `1` |
|
| `server.pdb.maxUnavailable` | Sets the max number of pods unavailable for the Pod Disruption Budget | `""` |
|
||||||
| `server.secure` | Run Argo server in secure mode | `false` |
|
| `server.secure` | Run Argo server in secure mode | `false` |
|
||||||
| `server.baseHref` | Base href of the Argo Workflows deployment | `/` |
|
| `server.baseHref` | Base href of the Argo Workflows deployment | `/` |
|
||||||
| `server.containerPorts.web` | argo Server container port | `2746` |
|
| `server.containerPorts.web` | argo Server container port | `2746` |
|
||||||
@@ -407,9 +407,9 @@ As an alternative, use one of the preset configurations for pod affinity, pod an
|
|||||||
| `controller.workflowDefaults` | Default Workflow Values | `{}` |
|
| `controller.workflowDefaults` | Default Workflow Values | `{}` |
|
||||||
| `controller.logging.level` | Level for the controller logging | `info` |
|
| `controller.logging.level` | Level for the controller logging | `info` |
|
||||||
| `controller.logging.globalLevel` | Global logging level for the controller | `0` |
|
| `controller.logging.globalLevel` | Global logging level for the controller | `0` |
|
||||||
| `controller.pdb.enabled` | Create Pod Disruption Budget for the controller component | `false` |
|
| `controller.pdb.enabled` | Create Pod Disruption Budget for the controller component | `true` |
|
||||||
| `controller.pdb.minAvailable` | Sets the min number of pods availables for the Pod Disruption Budget | `1` |
|
| `controller.pdb.minAvailable` | Sets the min number of pods availables for the Pod Disruption Budget | `""` |
|
||||||
| `controller.pdb.maxUnavailable` | Sets the max number of pods unavailable for the Pod Disruption Budget | `1` |
|
| `controller.pdb.maxUnavailable` | Sets the max number of pods unavailable for the Pod Disruption Budget | `""` |
|
||||||
| `controller.serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
|
| `controller.serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
|
||||||
| `controller.serviceAccount.name` | Name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `""` |
|
| `controller.serviceAccount.name` | Name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `""` |
|
||||||
| `controller.serviceAccount.automountServiceAccountToken` | Automount service account token for the server service account | `false` |
|
| `controller.serviceAccount.automountServiceAccountToken` | Automount service account token for the server service account | `false` |
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
|
|||||||
SPDX-License-Identifier: APACHE-2.0
|
SPDX-License-Identifier: APACHE-2.0
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{- $replicaCount := int .Values.controller.replicaCount }}
|
{{- if .Values.controller.pdb.enabled }}
|
||||||
{{- if and .Values.controller.pdb.enabled (gt $replicaCount 1) }}
|
|
||||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
@@ -21,12 +20,11 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
{{- if .Values.controller.pdb.minAvailable }}
|
{{- if .Values.controller.pdb.minAvailable }}
|
||||||
minAvailable: {{ .Values.controller.pdb.minAvailable }}
|
minAvailable: {{ .Values.controller.pdb.minAvailable }}
|
||||||
{{- else if .Values.controller.pdb.maxUnavailable }}
|
|
||||||
maxUnavailable: {{ .Values.controller.pdb.maxUnavailable }}
|
|
||||||
{{- else }}
|
|
||||||
minAvailable: 0
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.controller.podLabels .Values.commonLabels ) "context" . ) }}
|
{{- if or .Values.controller.pdb.maxUnavailable (not .Values.controller.pdb.minAvailable) }}
|
||||||
|
maxUnavailable: {{ .Values.controller.pdb.maxUnavailable | default 1 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.controller.podLabels .Values.commonLabels $versionLabel ) "context" . ) }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
||||||
app.kubernetes.io/component: controller
|
app.kubernetes.io/component: controller
|
||||||
|
|||||||
@@ -3,8 +3,7 @@ Copyright Broadcom, Inc. All Rights Reserved.
|
|||||||
SPDX-License-Identifier: APACHE-2.0
|
SPDX-License-Identifier: APACHE-2.0
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{- $replicaCount := int .Values.server.replicaCount }}
|
{{- if and .Values.server.enabled .Values.server.pdb.enabled -}}
|
||||||
{{- if and .Values.server.enabled .Values.server.pdb.enabled (or (gt $replicaCount 1) .Values.server.autoscaling.enabled) -}}
|
|
||||||
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
@@ -21,12 +20,11 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
{{- if .Values.server.pdb.minAvailable }}
|
{{- if .Values.server.pdb.minAvailable }}
|
||||||
minAvailable: {{ .Values.server.pdb.minAvailable }}
|
minAvailable: {{ .Values.server.pdb.minAvailable }}
|
||||||
{{- else if .Values.server.pdb.maxUnavailable }}
|
|
||||||
maxUnavailable: {{ .Values.server.pdb.maxUnavailable }}
|
|
||||||
{{- else }}
|
|
||||||
minAvailable: 0
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.server.podLabels .Values.commonLabels ) "context" . ) }}
|
{{- if or .Values.server.pdb.maxUnavailable ( not .Values.server.pdb.minAvailable ) }}
|
||||||
|
maxUnavailable: {{ .Values.server.pdb.maxUnavailable | default 1 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.server.podLabels .Values.commonLabels $versionLabel ) "context" . ) }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
|
||||||
app.kubernetes.io/component: server
|
app.kubernetes.io/component: server
|
||||||
|
|||||||
@@ -289,9 +289,9 @@ server:
|
|||||||
## @param server.pdb.maxUnavailable Sets the max number of pods unavailable for the Pod Disruption Budget
|
## @param server.pdb.maxUnavailable Sets the max number of pods unavailable for the Pod Disruption Budget
|
||||||
##
|
##
|
||||||
pdb:
|
pdb:
|
||||||
enabled: false
|
enabled: true
|
||||||
minAvailable: 1
|
minAvailable: ""
|
||||||
maxUnavailable: 1
|
maxUnavailable: ""
|
||||||
## Run the argo server in "secure" mode.
|
## Run the argo server in "secure" mode.
|
||||||
## Ref: https://argoproj.github.io/argo-workflows/tls/
|
## Ref: https://argoproj.github.io/argo-workflows/tls/
|
||||||
## @param server.secure Run Argo server in secure mode
|
## @param server.secure Run Argo server in secure mode
|
||||||
@@ -857,9 +857,9 @@ controller:
|
|||||||
## @param controller.pdb.maxUnavailable Sets the max number of pods unavailable for the Pod Disruption Budget
|
## @param controller.pdb.maxUnavailable Sets the max number of pods unavailable for the Pod Disruption Budget
|
||||||
##
|
##
|
||||||
pdb:
|
pdb:
|
||||||
enabled: false
|
enabled: true
|
||||||
minAvailable: 1
|
minAvailable: ""
|
||||||
maxUnavailable: 1
|
maxUnavailable: ""
|
||||||
## Controller Service Account
|
## Controller Service Account
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
## @param controller.serviceAccount.create Specifies whether a ServiceAccount should be created
|
## @param controller.serviceAccount.create Specifies whether a ServiceAccount should be created
|
||||||
|
|||||||
Reference in New Issue
Block a user