fix(argocd-image-updater): add namespace field for namespace scoped resources (#1970)

Signed-off-by: yu-croco <yu.croco@gmail.com>
This commit is contained in:
Aikawa 2023-04-16 17:13:00 +09:00 committed by GitHub
parent 22356c77af
commit 29b753057b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 16 additions and 9 deletions

View file

@ -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.5 version: 0.9.0
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
@ -15,5 +15,5 @@ maintainers:
url: https://argoproj.github.io/ url: https://argoproj.github.io/
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: changed - kind: fixed
description: Added support for pod labels description: add namespace field for namespace scoped resources

View file

@ -5,6 +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 }}
data: data:
{{- toYaml .Values.authScripts.scripts | nindent 2}} {{- toYaml .Values.authScripts.scripts | nindent 2}}
{{- end }} {{- end }}

View file

@ -4,6 +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 }}
data: data:
{{- with .Values.config.sshConfig }} {{- with .Values.config.sshConfig }}
{{- toYaml . | nindent 2 }} {{- toYaml . | nindent 2 }}

View file

@ -5,6 +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 }}
data: data:
{{- with .Values.config.applicationsAPIKind }} {{- with .Values.config.applicationsAPIKind }}
applications_api: {{ . }} applications_api: {{ . }}

View file

@ -2,6 +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 }}
labels: labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }} {{- include "argocd-image-updater.labels" . | nindent 4 }}
spec: spec:

View file

@ -14,6 +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 }}
spec: spec:
ports: ports:
- name: metrics - name: metrics

View file

@ -6,6 +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 }}
rules: rules:
- apiGroups: - apiGroups:
- '' - ''
@ -45,4 +46,5 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: {{ include "argocd-image-updater.serviceAccountName" . }} name: {{ include "argocd-image-updater.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}
{{- end }} {{- end }}

View file

@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: argocd-image-updater-secret name: argocd-image-updater-secret
namespace: {{ .Release.Namespace | quote }}
labels: labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }} {{- include "argocd-image-updater.labels" . | nindent 4 }}
type: Opaque type: Opaque

View file

@ -3,6 +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 }}
labels: labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }} {{- include "argocd-image-updater.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }} {{- with .Values.serviceAccount.annotations }}

View file

@ -3,9 +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
{{- with .Values.metrics.serviceMonitor.namespace }} namespace: {{ default .Release.Namespace .Values.metrics.serviceMonitor.namespace | quote }}
namespace: {{ . }}
{{- end }}
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 }}