feat(argocd-image-updater): Add ability to set .Values.namespaceOverride (#2562)
Signed-off-by: Braden Wright <braden.wright@waltlabs.io>
This commit is contained in:
parent
09679ae4d3
commit
fba54d4597
13 changed files with 24 additions and 13 deletions
|
@ -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.9.4
|
version: 0.9.5
|
||||||
appVersion: v0.12.2
|
appVersion: v0.12.2
|
||||||
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
|
||||||
|
@ -19,4 +19,4 @@ annotations:
|
||||||
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: added
|
||||||
description: Allow defining additional labels to Service Account
|
description: Allow overriding of .Release.Namespace with .Values.namespaceOverride
|
||||||
|
|
|
@ -105,6 +105,7 @@ The `config.registries` value can be used exactly as it looks in the documentati
|
||||||
| metrics.serviceMonitor.relabelings | list | `[]` | Prometheus [RelabelConfigs] to apply to samples before scraping |
|
| metrics.serviceMonitor.relabelings | list | `[]` | Prometheus [RelabelConfigs] to apply to samples before scraping |
|
||||||
| metrics.serviceMonitor.selector | object | `{}` | Prometheus ServiceMonitor selector |
|
| metrics.serviceMonitor.selector | object | `{}` | Prometheus ServiceMonitor selector |
|
||||||
| nameOverride | string | `""` | Global name (argocd-image-updater.name in _helpers.tpl) override |
|
| nameOverride | string | `""` | Global name (argocd-image-updater.name in _helpers.tpl) override |
|
||||||
|
| namespaceOverride | string | `""` | Global namespace (argocd-image-updater.namespace in _helpers.tpl) override |
|
||||||
| nodeSelector | object | `{}` | Kubernetes nodeSelector settings for the deployment |
|
| nodeSelector | object | `{}` | Kubernetes nodeSelector settings for the deployment |
|
||||||
| podAnnotations | object | `{}` | Pod Annotations for the deployment |
|
| podAnnotations | object | `{}` | Pod Annotations for the deployment |
|
||||||
| podLabels | object | `{}` | Pod Labels for the deployment |
|
| podLabels | object | `{}` | Pod Labels for the deployment |
|
||||||
|
|
|
@ -24,6 +24,13 @@ If release name contains chart name it will be used as a full name.
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Override .Release.Namespace
|
||||||
|
*/}}
|
||||||
|
{{- define "argocd-image-updater.namespace" -}}
|
||||||
|
{{- default .Release.Namespace .Values.namespaceOverride }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create chart name and version as used by the chart label.
|
Create chart name and version as used by the chart label.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -5,7 +5,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: argocd-image-updater-authscripts
|
name: argocd-image-updater-authscripts
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
data:
|
data:
|
||||||
{{- toYaml .Values.authScripts.scripts | nindent 2}}
|
{{- toYaml .Values.authScripts.scripts | nindent 2}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -4,7 +4,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: argocd-image-updater-ssh-config
|
name: argocd-image-updater-ssh-config
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
data:
|
data:
|
||||||
{{- with .Values.config.sshConfig }}
|
{{- with .Values.config.sshConfig }}
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
|
|
|
@ -5,7 +5,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: argocd-image-updater-config
|
name: argocd-image-updater-config
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
data:
|
data:
|
||||||
{{- with .Values.config.applicationsAPIKind }}
|
{{- with .Values.config.applicationsAPIKind }}
|
||||||
applications_api: {{ . }}
|
applications_api: {{ . }}
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argocd-image-updater.fullname" . }}
|
name: {{ include "argocd-image-updater.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -14,7 +14,7 @@ metadata:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ include "argocd-image-updater.fullname" . }}-metrics
|
name: {{ include "argocd-image-updater.fullname" . }}-metrics
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: metrics
|
- name: metrics
|
||||||
|
|
|
@ -6,7 +6,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{ include "argocd-image-updater.labels" . | nindent 4 }}
|
{{ include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: {{ include "argocd-image-updater.fullname" . }}
|
name: {{ include "argocd-image-updater.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ''
|
- ''
|
||||||
|
@ -39,6 +39,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{ include "argocd-image-updater.labels" . | nindent 4 }}
|
{{ include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
name: {{ include "argocd-image-updater.fullname" . }}
|
name: {{ include "argocd-image-updater.fullname" . }}
|
||||||
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
|
@ -46,5 +47,5 @@ roleRef:
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: {{ include "argocd-image-updater.serviceAccountName" . }}
|
name: {{ include "argocd-image-updater.serviceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: argocd-image-updater-secret
|
name: argocd-image-updater-secret
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
type: Opaque
|
type: Opaque
|
||||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argocd-image-updater.serviceAccountName" . }}
|
name: {{ include "argocd-image-updater.serviceAccountName" . }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
{{- with .Values.serviceAccount.labels }}
|
{{- with .Values.serviceAccount.labels }}
|
||||||
|
|
|
@ -3,7 +3,7 @@ apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "argocd-image-updater.fullname" . }}-metrics
|
name: {{ include "argocd-image-updater.fullname" . }}-metrics
|
||||||
namespace: {{ default .Release.Namespace .Values.metrics.serviceMonitor.namespace | quote }}
|
namespace: {{ default (include "argocd-image-updater.namespace" .) .Values.metrics.serviceMonitor.namespace | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||||
{{- with .Values.metrics.serviceMonitor.selector }}
|
{{- with .Values.metrics.serviceMonitor.selector }}
|
||||||
|
@ -29,7 +29,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
- {{ .Release.Namespace }}
|
- {{ include "argocd-image-updater.namespace" . | quote }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "argocd-image-updater.selectorLabels" . | nindent 6 }}
|
{{- include "argocd-image-updater.selectorLabels" . | nindent 6 }}
|
||||||
|
|
|
@ -17,6 +17,8 @@ imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
# -- Global fullname (argocd-image-updater.fullname in _helpers.tpl) override
|
# -- Global fullname (argocd-image-updater.fullname in _helpers.tpl) override
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
# -- Global namespace (argocd-image-updater.namespace in _helpers.tpl) override
|
||||||
|
namespaceOverride: ""
|
||||||
|
|
||||||
# -- Extra arguments for argocd-image-updater not defined in `config.argocd`.
|
# -- Extra arguments for argocd-image-updater not defined in `config.argocd`.
|
||||||
# If a flag contains both key and value, they need to be split to a new entry
|
# If a flag contains both key and value, they need to be split to a new entry
|
||||||
|
|
Loading…
Reference in a new issue