Skip to content

Commit 68fbea2

Browse files
committed
Fix make generate-kccm-flavors
`make generate-kccm-flavors` generates wrong manifests, setting a constant names where we should use variables. This commit fixes the `hack/kccm-flavor-gen.sh` script so it will replace the hard coded names with the right variables. Signed-off-by: Nahshon Unna-Tsameret <[email protected]>
1 parent b9550db commit 68fbea2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hack/kccm-flavor-gen.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ set -x -e -o pipefail
55
kccm_template=/tmp/kccm.yaml
66

77
kubectl kustomize config/kccm > $kccm_template
8+
9+
10+
sed -i \
11+
-E "s|(namespace: )kvcluster|\1\${NAMESPACE}|g;s|(^.*cluster-name=)kvcluster|\1\${CLUSTER_NAME}|g" \
12+
${kccm_template}
13+
814
for cluster_template in $(find templates/ -type f ! -name "*kccm*" -and ! -name "*ext*" -and ! -name "OWNERS"); do
915
cluster_kccm_template=${cluster_template%%.*}-kccm.yaml
1016
cp -f $cluster_template ${cluster_kccm_template}

0 commit comments

Comments
 (0)