Skip to content

Commit

Permalink
fix(base-cluster/flux): kustomization path templating (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau authored Apr 22, 2024
1 parent c486a57 commit 7e67787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/base-cluster/ci/flux-gitrepositories-gen-values.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o pipefail

i=0
for url in 'url="https://github.com"' 'url="ssh://[email protected]/group/name.git"'; do
for path in 'path="prod"' ''; do
for path in 'path="prod"' 'path="{{ .global.clusterName }}"' ''; do
for extra in 'branch="main"' 'commit="549aee1"' 'semver="1.0.0"' 'tag="2.0.1"' ''; do
for decr in 'decryption={provider:"sops"}' ''; do
for auth in 'username="user" | .password="pass"' ''; do
Expand Down
2 changes: 1 addition & 1 deletion charts/base-cluster/templates/flux/flux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
name: {{ printf "%s-flux-%s" (include "common.names.fullname" $) $name }}
namespace: {{ $.Release.Namespace }}
{{- if $instance.path }}
path: {{ include "common.tplvalues.render" (dict "value" $instance.path "context" $) | quote }}
path: {{ include "common.tplvalues.render" (dict "value" $instance.path "context" $.Values) | quote }}
{{- end }}
{{- if $instance.decryption }}
decryption:
Expand Down

0 comments on commit 7e67787

Please sign in to comment.