Add support for additional initContainers and additional volume/volumeMounts (#1542)
fix github action to handle crd installation correctly Signed-off-by: bakito <github@bakito.ch> Signed-off-by: bakito <github@bakito.ch>
This commit is contained in:
parent
3351b30ee6
commit
32d86666be
5 changed files with 41 additions and 3 deletions
4
.github/workflows/lint-and-test.yml
vendored
4
.github/workflows/lint-and-test.yml
vendored
|
@ -64,7 +64,9 @@ jobs:
|
||||||
if: |
|
if: |
|
||||||
contains(steps.list-changed.outputs.changed_charts, 'argocd-image-updater')
|
contains(steps.list-changed.outputs.changed_charts, 'argocd-image-updater')
|
||||||
run: |
|
run: |
|
||||||
kubectl apply -f charts/argo-cd/templates/crds
|
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
|
||||||
|
helm dependency build charts/argo-cd/
|
||||||
|
helm template charts/argo-cd/ -s templates/crds/* | kubectl apply -f -
|
||||||
|
|
||||||
- name: Skip HPA tests of ArgoCD
|
- name: Skip HPA tests of ArgoCD
|
||||||
if: contains(steps.list-changed.outputs.changed_charts, 'argo-cd')
|
if: contains(steps.list-changed.outputs.changed_charts, 'argo-cd')
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: argocd-image-updater
|
name: argocd-image-updater
|
||||||
description: A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD
|
description: A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD
|
||||||
type: application
|
type: application
|
||||||
version: 0.8.0
|
version: 0.8.1
|
||||||
appVersion: v0.12.0
|
appVersion: v0.12.0
|
||||||
home: https://github.com/argoproj-labs/argocd-image-updater
|
home: https://github.com/argoproj-labs/argocd-image-updater
|
||||||
icon: https://argocd-image-updater.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argocd-image-updater.readthedocs.io/en/stable/assets/logo.png
|
||||||
|
@ -15,4 +15,4 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- "[Changed]: Update to argocd-image-updater v0.12"
|
- "[Added]: Add support for additional initContainers and additional volume/volumeMounts"
|
||||||
|
|
|
@ -91,6 +91,7 @@ The `config.registries` value can be used exactly as it looks in the documentati
|
||||||
| image.repository | string | `"quay.io/argoprojlabs/argocd-image-updater"` | Default image repository |
|
| image.repository | string | `"quay.io/argoprojlabs/argocd-image-updater"` | Default image repository |
|
||||||
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion |
|
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion |
|
||||||
| imagePullSecrets | list | `[]` | ImagePullSecrets for the image updater deployment |
|
| imagePullSecrets | list | `[]` | ImagePullSecrets for the image updater deployment |
|
||||||
|
| initContainers | list | `[]` | Init containers to add to the image updater pod |
|
||||||
| metrics.enabled | bool | `false` | Deploy metrics service |
|
| metrics.enabled | bool | `false` | Deploy metrics service |
|
||||||
| metrics.service.annotations | object | `{}` | Metrics service annotations |
|
| metrics.service.annotations | object | `{}` | Metrics service annotations |
|
||||||
| metrics.service.labels | object | `{}` | Metrics service labels |
|
| metrics.service.labels | object | `{}` | Metrics service labels |
|
||||||
|
@ -115,6 +116,8 @@ The `config.registries` value can be used exactly as it looks in the documentati
|
||||||
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
||||||
| tolerations | list | `[]` | Kubernetes toleration settings for the deployment |
|
| tolerations | list | `[]` | Kubernetes toleration settings for the deployment |
|
||||||
| updateStrategy | object | `{"type":"Recreate"}` | The deployment strategy to use to replace existing pods with new ones |
|
| updateStrategy | object | `{"type":"Recreate"}` | The deployment strategy to use to replace existing pods with new ones |
|
||||||
|
| volumeMounts | list | `[]` | Additional volumeMounts to the image updater main container |
|
||||||
|
| volumes | list | `[]` | Additional volumes to the image updater pod |
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs)
|
Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs)
|
||||||
|
|
|
@ -138,6 +138,9 @@ spec:
|
||||||
- mountPath: /scripts
|
- mountPath: /scripts
|
||||||
name: authscripts
|
name: authscripts
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.volumeMounts }}
|
||||||
|
{{- toYaml . | nindent 10}}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- configMap:
|
- configMap:
|
||||||
items:
|
items:
|
||||||
|
@ -164,6 +167,9 @@ spec:
|
||||||
name: argocd-image-updater-ssh-config
|
name: argocd-image-updater-ssh-config
|
||||||
optional: true
|
optional: true
|
||||||
name: ssh-config
|
name: ssh-config
|
||||||
|
{{- with .Values.volumes }}
|
||||||
|
{{- toYaml . | nindent 6}}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
@ -176,3 +182,7 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.initContainers }}
|
||||||
|
initContainers:
|
||||||
|
{{- toYaml . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -42,6 +42,29 @@ extraEnv: []
|
||||||
# - name: AWS_REGION
|
# - name: AWS_REGION
|
||||||
# value: "us-west-1"
|
# value: "us-west-1"
|
||||||
|
|
||||||
|
# -- Init containers to add to the image updater pod
|
||||||
|
initContainers: []
|
||||||
|
# - name: download-tools
|
||||||
|
# image: alpine:3.8
|
||||||
|
# command: [sh, -c]
|
||||||
|
# args:
|
||||||
|
# - wget -qO- https://get.helm.sh/helm-v2.16.1-linux-amd64.tar.gz | tar -xvzf - &&
|
||||||
|
# mv linux-amd64/helm /custom-tools/
|
||||||
|
# volumeMounts:
|
||||||
|
# - mountPath: /custom-tools
|
||||||
|
# name: custom-tools
|
||||||
|
|
||||||
|
# -- Additional volumeMounts to the image updater main container
|
||||||
|
volumeMounts: []
|
||||||
|
|
||||||
|
# -- Additional volumes to the image updater pod
|
||||||
|
volumes: []
|
||||||
|
## Use init containers to configure custom tooling
|
||||||
|
## https://argo-cd.readthedocs.io/en/stable/operator-manual/custom_tools/
|
||||||
|
## When using the volumes & volumeMounts section bellow, please comment out those above.
|
||||||
|
# - name: custom-tools
|
||||||
|
# emptyDir: {}
|
||||||
|
|
||||||
config:
|
config:
|
||||||
# -- API kind that is used to manage Argo CD applications (`kubernetes` or `argocd`)
|
# -- API kind that is used to manage Argo CD applications (`kubernetes` or `argocd`)
|
||||||
applicationsAPIKind: ""
|
applicationsAPIKind: ""
|
||||||
|
|
Loading…
Reference in a new issue