feat(argocd-applicationset): add env variable in values (#1132)

* feat(appset): add env variable in values

Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>

* wrong chart!!!

Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>

* quote

Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>

* update variable name

Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>
This commit is contained in:
Alexandre Gaudreault 2022-02-16 13:43:46 -05:00 committed by GitHub
parent 59feee1a07
commit ae13c65229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 2 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-applicationset name: argocd-applicationset
description: A Helm chart for installing ArgoCD ApplicationSet description: A Helm chart for installing ArgoCD ApplicationSet
type: application type: application
version: 1.9.1 version: 1.10.0
appVersion: "v0.3.0" appVersion: "v0.3.0"
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://argocd-applicationset.readthedocs.io/en/stable/assets/logo.png icon: https://argocd-applicationset.readthedocs.io/en/stable/assets/logo.png
@ -14,4 +14,4 @@ maintainers:
- name: maruina - name: maruina
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Changed]: Consistent .helmignore" - "[Added]: Ability to define custom env variables for ArgoCD applicationset"

View file

@ -67,6 +67,8 @@ kubectl apply -k https://github.com/argoproj-labs/applicationset.git/manifests/c
| args.policy | string | `"sync"` | How application is synced between the generator and the cluster | | args.policy | string | `"sync"` | How application is synced between the generator and the cluster |
| args.probeBindAddr | string | `":8081"` | The default health check port | | args.probeBindAddr | string | `":8081"` | The default health check port |
| extraArgs | list | `[]` | List of extra cli args to add | | extraArgs | list | `[]` | List of extra cli args to add |
| extraEnv | list | `[]` | Environment variables to pass to the controller |
| extraEnvFrom | list | `[]` (See [values.yaml]) | envFrom to pass to the controller |
| extraVolumeMounts | list | `[]` | List of extra mounts to add (normally used with extraVolumes) | | extraVolumeMounts | list | `[]` | List of extra mounts to add (normally used with extraVolumes) |
| extraVolumes | list | `[]` | List of extra volumes to add | | extraVolumes | list | `[]` | List of extra volumes to add |
| fullnameOverride | string | `""` | Override the default fully qualified app name | | fullnameOverride | string | `""` | Override the default fully qualified app name |

View file

@ -59,6 +59,14 @@ spec:
- name: webhook - name: webhook
containerPort: 7000 containerPort: 7000
protocol: TCP protocol: TCP
{{- with .Values.extraEnv }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts: volumeMounts:

View file

@ -147,6 +147,19 @@ extraVolumes: []
extraArgs: [] extraArgs: []
# - --loglevel=warn # - --loglevel=warn
# -- Environment variables to pass to the controller
extraEnv: []
# - name: "MY_VAR"
# value: "value"
# -- envFrom to pass to the controller
# @default -- `[]` (See [values.yaml])
extraEnvFrom: []
# - configMapRef:
# name: config-map-name
# - secretRef:
# name: secret-name
# -- Override the Kubernetes version, which is used to evaluate certain manifests # -- Override the Kubernetes version, which is used to evaluate certain manifests
kubeVersionOverride: "" kubeVersionOverride: ""