Enable static validation for all available plans per site
Change-Id: I82e7d8f0fbe03e3d9e8d18c5a14e8ad9dad944e3 Signed-off-by: Ruslan Aliev <raliev@mirantis.com> Closes: #562
This commit is contained in:
parent
4155f18bdf
commit
77f0b32e5a
@ -18,3 +18,9 @@ status:
|
||||
# when we have more flexible labeling system in place, we will not
|
||||
# deliver this document to ephemeral cluster
|
||||
state: externally provisioned
|
||||
ID: ""
|
||||
operationHistory: {}
|
||||
errorMessage: ""
|
||||
hardwareProfile: ""
|
||||
operationalStatus: ""
|
||||
poweredOn: false
|
||||
|
@ -10,13 +10,21 @@ siteConfig:
|
||||
ignoreMissingSchemas: false
|
||||
planName: AIRSHIPCTL_CURRENT_PLAN
|
||||
planConfigs:
|
||||
phasePlan:
|
||||
deploy-gating:
|
||||
kindsToSkip:
|
||||
- Clusterctl
|
||||
- VariableCatalogue
|
||||
crdList:
|
||||
- function/airshipctl-schemas/airshipit.org_versionscatalogues.yaml
|
||||
- function/airshipctl-schemas/airshipit.org_networkcatalogues.yaml
|
||||
iso:
|
||||
kindsToSkip:
|
||||
- VariableCatalogue
|
||||
- RemoteDirectConfiguration
|
||||
crdList:
|
||||
- function/airshipctl-schemas/airshipit.org_versionscatalogues.yaml
|
||||
- function/airshipctl-schemas/airshipit.org_networkcatalogues.yaml
|
||||
- global/crd/baremetal-operator/metal3.io_baremetalhosts_crd.yaml
|
||||
phaseName: AIRSHIPCTL_CURRENT_PHASE
|
||||
phaseConfigs:
|
||||
initinfra-ephemeral:
|
||||
|
@ -27,7 +27,7 @@ set -o pipefail
|
||||
: ${MANIFEST_REPO_URL:="https://review.opendev.org/airship/airshipctl"}
|
||||
|
||||
# Name of specific site to be validated
|
||||
SITE_NAME=${SITE_NAME:-$1}
|
||||
SITE=${SITE:-$1}
|
||||
TMP=$(mktemp -d)
|
||||
|
||||
# TODO: use `airshipctl config` to do this once all the needed knobs are exposed
|
||||
@ -72,7 +72,7 @@ for site_root in ${SITE_ROOTS}; do
|
||||
fi
|
||||
|
||||
# Validate only specific site if set
|
||||
if [ ! -z "$SITE_NAME" ] && [ "$site" != "$SITE_NAME" ]; then
|
||||
if [ ! -z "$SITE" ] && [ "$site" != "$SITE" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
@ -80,12 +80,8 @@ for site_root in ${SITE_ROOTS}; do
|
||||
generate_airshipconf $site
|
||||
phase_plans=$(airshipctl --airshipconf "${TMP}/$site.cfg" plan list | awk -F'/' '/PhasePlan/ {print $2}' | awk '{print $1}')
|
||||
for plan in $phase_plans; do
|
||||
# Perform static validation, add support of all plans later
|
||||
# TODO (raliev) remove this condition later
|
||||
if [ "$plan" = "phasePlan" ]; then
|
||||
airshipctl --airshipconf "${TMP}/$site.cfg" plan validate $plan
|
||||
echo "Validation of site ${site} is successful!"
|
||||
fi
|
||||
airshipctl --airshipconf "${TMP}/$site.cfg" plan validate $plan
|
||||
done
|
||||
echo "Validation of site ${site} is successful!"
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user