Skip to content

Commit

Permalink
Merge pull request #360 from claudiol/common-automatic-update
Browse files Browse the repository at this point in the history
Automatic common/ update
  • Loading branch information
claudiol authored Apr 17, 2024
2 parents a419ec4 + b9009e3 commit ffe8f3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/clustergroup/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ description: A Helm chart to create per-clustergroup ArgoCD applications and any
keywords:
- pattern
name: clustergroup
version: 0.8.2
version: 0.8.3
2 changes: 1 addition & 1 deletion common/clustergroup/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ metadata:
name: {{ $k }}
{{- if ne $v nil }}
labels:
argocd.argoproj.io/managed-by: {{ $patternName }}-{{ .clusterGroupName }}
argocd.argoproj.io/managed-by: {{ $patternName }}-{{ $clusterGroupName }}
{{- if $v.labels }}
{{- range $key, $value := $v.labels }} {{- /* We loop here even though the map has always just one key */}}
{{ $key }}: {{ $value | default "" | quote }}
Expand Down
4 changes: 4 additions & 0 deletions common/scripts/preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ done

if [ $isKustomize == "true" ]; then
kustomizePath=$(yq ".clusterGroup.applications.$APP.path" values-$SITE.yaml)
repoURL=$(yq ".clusterGroup.applications.$APP.repoURL" values-$SITE.yaml)
if [[ $repoURL == http* ]] || [[ $repoURL == git@ ]]; then
kustomizePath="${repoURL}/${kustomizePath}"
fi
cmd="oc kustomize ${kustomizePath}"
eval "$cmd"
else
Expand Down

0 comments on commit ffe8f3d

Please sign in to comment.