branch for helm chart selection
This commit is contained in:
parent
cfaba7f73c
commit
ecfc5c6a39
@ -277,6 +277,7 @@ spec:
|
||||
HELM_PATH=$(echo "$COMPONENT_METADATA" | jq -r ".[\"$service\"][\"helm.cnoe.io/chart-path\"] // empty")
|
||||
HELM_VALUES_DEFAULT=$(echo "$COMPONENT_METADATA" | jq -r ".[\"$service\"][\"helm.cnoe.io/values-file\"] // \"values.yaml\"")
|
||||
HELM_VALUES=$(echo "$VALUES_FILE_OVERRIDES" | jq -r ".[\"$service\"] // \"$HELM_VALUES_DEFAULT\"")
|
||||
HELM_GIT_REF=$(echo "$COMPONENT_METADATA" | jq -r ".[\"$service\"][\"helm.cnoe.io/git-ref\"] // \"HEAD\"")
|
||||
|
||||
# DEBUG: Log what we're checking
|
||||
echo " Checking for Helm annotations..."
|
||||
@ -284,6 +285,7 @@ spec:
|
||||
echo " HELM_PATH: $HELM_PATH"
|
||||
echo " HELM_VALUES_DEFAULT: $HELM_VALUES_DEFAULT"
|
||||
echo " HELM_VALUES (after override): $HELM_VALUES"
|
||||
echo " HELM_GIT_REF: $HELM_GIT_REF"
|
||||
|
||||
if [ -n "$HELM_REPO" ]; then
|
||||
# Component has Helm chart - create ArgoCD Application manifest
|
||||
@ -389,7 +391,7 @@ spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: $HELM_REPO
|
||||
targetRevision: HEAD
|
||||
targetRevision: $HELM_GIT_REF
|
||||
path: $HELM_PATH
|
||||
helm:
|
||||
valueFiles:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user