feat(argocd-applicationset): Add extraArgs (#946)

* feat(argocd-applicationset): Add extraArgs

Signed-off-by: Jan-Otto Kröpke <joe@adorsys.de>

* Align with existing code style

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

* Fix linting error and update README

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Jan-Otto Kröpke 2021-09-27 14:06:24 +02:00 committed by GitHub
parent 9984a74eb2
commit d4b603f4c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 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.4.0 version: 1.5.0
appVersion: "v0.2.0" appVersion: "v0.2.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: |
- "[Added]: Configuration for Pod labels" - "[Added]: Add extraArgs to define additional CLI parameters"

View file

@ -65,6 +65,7 @@ kubectl apply -k https://github.com/argoproj-labs/applicationset.git/manifests/c
| args.namespace | string | `"argocd"` | The default Argo CD repo namespace | | args.namespace | string | `"argocd"` | The default Argo CD repo namespace |
| 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 |
| 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

@ -44,6 +44,9 @@ spec:
- --policy={{ .Values.args.policy }} - --policy={{ .Values.args.policy }}
- --debug={{ .Values.args.debug }} - --debug={{ .Values.args.debug }}
- --dry-run={{ .Values.args.dryRun }} - --dry-run={{ .Values.args.dryRun }}
{{- with .Values.extraArgs }}
{{- toYaml . | nindent 12 }}
{{- end }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
ports: ports:

View file

@ -113,3 +113,7 @@ extraVolumeMounts: []
extraVolumes: [] extraVolumes: []
# - name: foobar # - name: foobar
# emptyDir: {} # emptyDir: {}
# -- List of extra cli args to add
extraArgs: []
# - --loglevel=warn