Skip to content

Commit

Permalink
Allow for passing in a raw string for the defaultTags (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtougeron authored Jun 6, 2024
1 parent 25a23c0 commit c9a1d4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/k8s-pvc-tagger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ keywords:
sources:
- https://github.com/mtougeron/k8s-pvc-tagger

version: 2.1.1
version: 2.2.0
appVersion: v1.1.0
8 changes: 6 additions & 2 deletions charts/k8s-pvc-tagger/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ spec:
- --annotation-prefix={{ .Values.annotationPrefix }}
{{- end }}
{{- if .Values.defaultTags }}
- --default-tags={{ tpl (.Values.defaultTags) $ | toJson }}
{{- if kindIs "string" .Values.defaultTags }}
- '--default-tags={{ tpl (.Values.defaultTags) $ }}'
{{- else }}
- '--default-tags={{ tpl (.Values.defaultTags | toJson) $ }}'
{{- end }}
{{- end }}
{{- if .Values.watchNamespace }}
- --watch-namespace={{ .Values.watchNamespace }}
{{- end }}
{{- range $key, $value := .Values.extraArgs }}
{{- if $value }}
- --{{ $key }}={{ $value }}
- --{{ $key }}={{ tpl $value $ }}
{{- else }}
- --{{ $key }}
{{- end }}
Expand Down

0 comments on commit c9a1d4e

Please sign in to comment.