feat(argocd-image-updater): Add k8s secret generation for ArgoCD API token (#1144)
* [image-updater] appVersion has been changed * Reword changelog Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Added argocd api key secret generation option Signed-off-by: Mikhail Alekseev <mikhailalekseev1@gmail.com> * changed docs Signed-off-by: Mikhail Alekseev <mikhailalekseev1@gmail.com> * Fix in README Signed-off-by: Mikhail Alekseev <mikhailalekseev1@gmail.com> * fix in values file Signed-off-by: Mikhail Alekseev <mikhailalekseev1@gmail.com> * fix README * Apply suggestions from code review Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Fix changelog annotation Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * Also add default labels to the newly created Secret Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
parent
4464f2a526
commit
62b5450f17
5 changed files with 42 additions and 10 deletions
11
charts/argocd-image-updater/templates/secret.yaml
Normal file
11
charts/argocd-image-updater/templates/secret.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{{- if .Values.config.argocd.token }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: argocd-image-updater-secret
|
||||
labels:
|
||||
{{- include "argocd-image-updater.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
argocd.token: {{ .Values.config.argocd.token | b64enc }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue