Skip to content

Commit

Permalink
add argocd label for token secret (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot authored Aug 17, 2023
1 parent 5f4e67f commit 5352817
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/argocd-appset-secret-plugin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion charts/argocd-appset-secret-plugin/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions charts/argocd-appset-secret-plugin/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5352817

Please sign in to comment.