File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,15 @@ envsubst -no-unset <"${KUSTOMIZE_BASE_DIR}/kustomization.yaml.tmpl" >"${ASSETS_D
2525
2626cat << EOF >"${ASSETS_DIR} /gomplate-context.yaml"
2727EnableKubeProxyReplacement: false
28+ Cluster:
29+ Labels:
30+ cluster.x-k8s.io/provider: tmpl-capiprovider-tmpl
2831EOF
29- gomplate -f " ${GIT_REPO_ROOT} /charts/cluster-api-runtime-extensions-nutanix/addons/cni/cilium/values-template.yaml" \
30- --context .=" ${ASSETS_DIR} /gomplate-context.yaml" \
31- > " ${ASSETS_DIR} /helm-values.yaml"
32+ # Replace trimPrefix with strings.TrimPrefix to use the in built go function in gomplate.
33+ sed ' s/trimPrefix/strings.TrimPrefix/g' \
34+ " ${GIT_REPO_ROOT} /charts/cluster-api-runtime-extensions-nutanix/addons/cni/cilium/values-template.yaml" |
35+ gomplate --context .=" ${ASSETS_DIR} /gomplate-context.yaml" \
36+ > " ${ASSETS_DIR} /helm-values.yaml"
3237
3338kustomize build \
3439 --load-restrictor LoadRestrictionsNone \
You can’t perform that action at this time.
0 commit comments