diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 3df8c3e..68dc0a1 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -14,19 +14,17 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v1 with: - version: v3.4.1 + version: v3.6.3 # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and # yamllint (https://github.com/adrienverge/yamllint) which require Python - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: 3.8 - name: Set up chart-testing - uses: helm/chart-testing-action@v2.0.1 - with: - version: v3.3.0 + uses: helm/chart-testing-action@v2.1.0 - name: Run chart-testing (list-changed) id: list-changed @@ -40,7 +38,7 @@ jobs: run: ct lint --config ct.yaml - name: Create kind cluster - uses: helm/kind-action@v1.1.0 + uses: helm/kind-action@v1.2.0 if: steps.list-changed.outputs.changed == 'true' - name: Run chart-testing (install) diff --git a/charts/registry-creds/Chart.yaml b/charts/registry-creds/Chart.yaml index 155d939..d8af94a 100644 --- a/charts/registry-creds/Chart.yaml +++ b/charts/registry-creds/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.10" description: A Helm chart for registry creds name: registry-creds -version: 1.2.1 +version: 1.2.2 home: https://hub.docker.com/r/upmcenterprises/registry-creds sources: - https://github.com/upmc-enterprises/registry-creds diff --git a/charts/registry-creds/README.md b/charts/registry-creds/README.md index 281fa64..64e83e9 100644 --- a/charts/registry-creds/README.md +++ b/charts/registry-creds/README.md @@ -129,6 +129,7 @@ Parameter | Description | Default `image.tag` | container image tag | `"1.9"` `image.pullPolicy` | container image pull policy | `"IfNotPresent"` `nameOverride` | override name of app |`""` +`args` | container args |`{}` `fullnameOverride` | override full name of app | `""` `podLabels` | labels to be added to pods | `{}` `podAnnotations` | annotations to be added to pods | `{}` diff --git a/charts/registry-creds/templates/deployment.yaml b/charts/registry-creds/templates/deployment.yaml index ba94666..73e27d8 100644 --- a/charts/registry-creds/templates/deployment.yaml +++ b/charts/registry-creds/templates/deployment.yaml @@ -106,6 +106,10 @@ spec: name: {{ default (include "registry-creds.name" . | printf "%s-acr") .Values.acr.existingSecretName }} key: ACR_PASSWORD {{- end }} + {{- range $key, $value := .Values.args }} + args: + - --{{ $key }}={{ $value }} + {{- end }} {{- if .Values.gcr.enabled }} volumeMounts: - name: {{ template "registry-creds.name" . }}-gcr diff --git a/charts/registry-creds/values.yaml b/charts/registry-creds/values.yaml index cb640b4..ebe4390 100644 --- a/charts/registry-creds/values.yaml +++ b/charts/registry-creds/values.yaml @@ -9,6 +9,10 @@ nameOverride: "" fullnameOverride: "" podLabels: {} podAnnotations: {} +## Container args (using container default if not set) +## default: null +args: {} + # skip-kube-system: false dpr: # dpr.enabled enables the injection of docker private registry credentials