Skip to content

Commit

Permalink
Merge pull request #1080 from CecileRobertMichon/rm-flavors
Browse files Browse the repository at this point in the history
Do not delete existing templates as part of flavor generation
  • Loading branch information
k8s-ci-robot authored Dec 17, 2020
2 parents 73ad2c8 + 368ebd0 commit 06a4b3c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hack/gen-flavors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ kustomize="${root}/hack/tools/bin/kustomize"
flavors_dir="${root}/templates/flavors/"
test_dir="${root}/templates/test/"

rm "${root}/templates/cluster-template"*
find "${flavors_dir}"* -maxdepth 0 -type d -print0 | xargs -0 -I {} basename {} | grep -v base | xargs -I {} sh -c "${kustomize} build --reorder none ${flavors_dir}{} > ${root}/templates/cluster-template-{}.yaml"
# move the default template to the default file expected by clusterctl
mv "${root}/templates/cluster-template-default.yaml" "${root}/templates/cluster-template.yaml"

rm -f "${test_dir}cluster-template"*
find "${test_dir}"* -maxdepth 0 -type d -print0 | xargs -0 -I {} basename {} | grep -v patches | xargs -I {} sh -c "${kustomize} build --load_restrictor none --reorder none ${test_dir}{} > ${test_dir}cluster-template-{}.yaml"

0 comments on commit 06a4b3c

Please sign in to comment.