Merge "Generate document CRD to different files"
This commit is contained in:
commit
e609f5e685
@ -132,9 +132,9 @@ for cluster in ephemeral target; do
|
|||||||
# step 1: actually apply all crds in the phase
|
# step 1: actually apply all crds in the phase
|
||||||
# TODO: will need to loop through phases in order, eventually
|
# TODO: will need to loop through phases in order, eventually
|
||||||
# e.g., load CRDs from initinfra first, so they're present when validating later phases
|
# e.g., load CRDs from initinfra first, so they're present when validating later phases
|
||||||
${ACTL} phase render ${phase} -k CustomResourceDefinition > ${TMP}/crds.yaml
|
${ACTL} phase render ${phase} -k CustomResourceDefinition > ${TMP}/${phase}-crds.yaml
|
||||||
if [ -s ${TMP}/crds.yaml ]; then
|
if [ -s ${TMP}/${phase}-crds.yaml ]; then
|
||||||
${KUBECTL} --context ${CONTEXT} --kubeconfig ${KUBECONFIG} apply -f ${TMP}/crds.yaml
|
${KUBECTL} --context ${CONTEXT} --kubeconfig ${KUBECONFIG} apply -f ${TMP}/${phase}-crds.yaml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# step 2: dry-run the entire phase
|
# step 2: dry-run the entire phase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user