Add Templates to pretty config

This commit is contained in:
Nikolai Rodionov 2024-05-10 15:51:10 +02:00
parent ce19c50ca4
commit 6a3bffceff
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -25,7 +25,7 @@ else
export $(jq -r .[0].object.data.vars $BINDING_CONTEXT_PATH) export $(jq -r .[0].object.data.vars $BINDING_CONTEXT_PATH)
export SP_CUSTOMER_ID=$(jq -r .[0].object.metadata.namespace $BINDING_CONTEXT_PATH) export SP_CUSTOMER_ID=$(jq -r .[0].object.metadata.namespace $BINDING_CONTEXT_PATH)
export SP_CONFIG_NAME=$(jq -r .[0].object.metadata.name $BINDING_CONTEXT_PATH) export SP_CONFIG_NAME=$(jq -r .[0].object.metadata.name $BINDING_CONTEXT_PATH)
export SP_APPLICATION=$(jq -r .[0].object.data."values.yaml" $BINDING_CONTEXT_PATH | base64 -d | yq '.helm.release') export SP_APPLICATION=$(jq -r '.[0].object.data."values.yaml"' $BINDING_CONTEXT_PATH | base64 -d | yq '.helm.release')
flux create source helm $SP_APPLICATION \ flux create source helm $SP_APPLICATION \
--namespace=$SP_CUSTOMER_ID \ --namespace=$SP_CUSTOMER_ID \