From 5352817202521f84d1a8685865c15ffb42b671dc Mon Sep 17 00:00:00 2001 From: JesseBot Date: Thu, 17 Aug 2023 12:16:12 +0200 Subject: [PATCH] add argocd label for token secret (#5) --- charts/argocd-appset-secret-plugin/Chart.yaml | 2 +- charts/argocd-appset-secret-plugin/README.md | 2 +- charts/argocd-appset-secret-plugin/templates/_helpers.tpl | 3 +++ charts/argocd-appset-secret-plugin/templates/secret-token.yaml | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/argocd-appset-secret-plugin/Chart.yaml b/charts/argocd-appset-secret-plugin/Chart.yaml index 3eb098e..1c69e59 100644 --- a/charts/argocd-appset-secret-plugin/Chart.yaml +++ b/charts/argocd-appset-secret-plugin/Chart.yaml @@ -16,7 +16,7 @@ maintainers: # pipeline. Library charts do not define any templates and therefore cannot be deployed. type: application -version: 0.2.2 +version: 0.2.3 # renovate: image=jessebot/argocd-appset-secret-plugin appVersion: "0.1.2" diff --git a/charts/argocd-appset-secret-plugin/README.md b/charts/argocd-appset-secret-plugin/README.md index 852cf5a..a225e93 100644 --- a/charts/argocd-appset-secret-plugin/README.md +++ b/charts/argocd-appset-secret-plugin/README.md @@ -1,6 +1,6 @@ # argocd-appset-secret-plugin -![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.2](https://img.shields.io/badge/AppVersion-0.1.2-informational?style=flat-square) +![Version: 0.2.3](https://img.shields.io/badge/Version-0.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.2](https://img.shields.io/badge/AppVersion-0.1.2-informational?style=flat-square) A Helm chart for adding a K8s Secret Plugin Generator to ApplicationSets diff --git a/charts/argocd-appset-secret-plugin/templates/_helpers.tpl b/charts/argocd-appset-secret-plugin/templates/_helpers.tpl index 343f9a3..2537d34 100644 --- a/charts/argocd-appset-secret-plugin/templates/_helpers.tpl +++ b/charts/argocd-appset-secret-plugin/templates/_helpers.tpl @@ -71,6 +71,9 @@ or the fullname of the chart + "-token" {{- end }} {{- end }} +{{/* +Defining the token and base url values for the configmap +*/}} {{- define "argocd-appset-secret-plugin.tokenConfigParam" -}} {{- printf "$%s:token" (include "argocd-appset-secret-plugin.tokenSecret" .) }} {{- end }} diff --git a/charts/argocd-appset-secret-plugin/templates/secret-token.yaml b/charts/argocd-appset-secret-plugin/templates/secret-token.yaml index b48431f..5944a59 100644 --- a/charts/argocd-appset-secret-plugin/templates/secret-token.yaml +++ b/charts/argocd-appset-secret-plugin/templates/secret-token.yaml @@ -4,6 +4,7 @@ kind: Secret metadata: name: {{ include "argocd-appset-secret-plugin.fullname" . }}-token labels: + app.kubernetes.io/part-of: argocd {{- include "argocd-appset-secret-plugin.labels" . | nindent 4 }} type: Opaque data: