feat(argo-cd): Conditionally create the argocd-cmd-params-cm ConfigMap (#2129)

* Add conditional for params cm.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Add value for create.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Update CHANGELOG.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Extra space.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Update docs.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Extra space.

Signed-off-by: Josh Baird <jbaird@galileo.io>

* Bump to 5.36.9

Signed-off-by: Josh Baird <jbaird@galileo.io>

---------

Signed-off-by: Josh Baird <jbaird@galileo.io>
pull/2127/head^2 argo-cd-5.36.9
Josh Baird 2023-06-26 10:31:20 -04:00 committed by GitHub
parent f1526ec558
commit 4d0ae17c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 5 deletions

View File

@ -3,7 +3,7 @@ appVersion: v2.7.6
kubeVersion: ">=1.23.0-0"
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 5.36.7
version: 5.36.9
home: https://github.com/argoproj/argo-helm
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
sources:
@ -26,7 +26,5 @@ annotations:
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
artifacthub.io/changes: |
- kind: changed
description: Adapt `applicationSet.containerPorts.metrics` to 8080 (revert previous release)
- kind: changed
description: Adapt `applicationSet.metrics.service.servicePort` to 8080
- kind: added
description: Added `configs.params.create` value to the argo-cd chart

View File

@ -464,6 +464,7 @@ NAME: my-release
| configs.params."server.staticassets" | string | `"/shared/app"` | Directory path that contains additional static assets |
| configs.params."server.x.frame.options" | string | `"sameorigin"` | Set X-Frame-Options header in HTTP responses to value. To disable, set to "". |
| configs.params.annotations | object | `{}` | Annotations to be added to the argocd-cmd-params-cm ConfigMap |
| configs.params.create | bool | `true` | Create the argocd-cmd-params-cm configmap If false, it is expected the configmap will be created by something else. |
| configs.rbac."policy.csv" | string | `''` (See [values.yaml]) | File containing user-defined policies and role definitions. |
| configs.rbac."policy.default" | string | `""` | The name of the default role which Argo CD will falls back to, when authorizing API requests (optional). If omitted or empty, users may be still be able to login, but will see no apps, projects, etc... |
| configs.rbac.annotations | object | `{}` | Annotations to be added to argocd-rbac-cm configmap |

View File

@ -1,3 +1,4 @@
{{- if .Values.configs.params.create }}
apiVersion: v1
kind: ConfigMap
metadata:
@ -13,3 +14,4 @@ metadata:
{{- end }}
data:
{{- include "argo-cd.config.params" . | trim | nindent 2 }}
{{- end }}

View File

@ -217,6 +217,10 @@ configs:
# Argo CD configuration parameters
## Ref: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/argocd-cmd-params-cm.yaml
params:
# -- Create the argocd-cmd-params-cm configmap
# If false, it is expected the configmap will be created by something else.
create: true
# -- Annotations to be added to the argocd-cmd-params-cm ConfigMap
annotations: {}