Skip to content

Commit

Permalink
E2E: Clean up unused overlays
Browse files Browse the repository at this point in the history
Remove BMO overlays no longer used in the e2e tests.
Drop upgrade from ironic-24.0 as it is out of support and not needed to
be tested anymore.

Signed-off-by: Lennart Jern <[email protected]>
  • Loading branch information
lentzi90 committed Jan 23, 2025
1 parent 23c54cf commit e8e6433
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 287 deletions.
4 changes: 0 additions & 4 deletions config/overlays/e2e-release-0.4/ironic.env

This file was deleted.

38 changes: 0 additions & 38 deletions config/overlays/e2e-release-0.4/kustomization.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions config/overlays/e2e-release-0.5/ironic.env

This file was deleted.

36 changes: 0 additions & 36 deletions config/overlays/e2e-release-0.5/kustomization.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions config/overlays/fixture-release-0.4/kustomization.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions config/overlays/fixture-release-0.5/kustomization.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions hack/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,47 +186,28 @@ BMO_OVERLAYS=(
)
IRONIC_OVERLAYS=(
"${REPO_ROOT}/ironic-deployment/overlays/e2e"
"${REPO_ROOT}/ironic-deployment/overlays/e2e-with-inspector"
"${REPO_ROOT}/ironic-deployment/overlays/e2e-release-24.0-with-inspector"
"${REPO_ROOT}/ironic-deployment/overlays/e2e-release-24.1"
"${REPO_ROOT}/ironic-deployment/overlays/e2e-release-25.0"
"${REPO_ROOT}/ironic-deployment/overlays/e2e-release-26.0"
)

IRONIC_USERNAME="$(uuidgen)"
IRONIC_PASSWORD="$(uuidgen)"
IRONIC_INSPECTOR_USERNAME="$(uuidgen)"
IRONIC_INSPECTOR_PASSWORD="$(uuidgen)"

# These must be exported so that envsubst can pick them up below
export IRONIC_USERNAME
export IRONIC_PASSWORD
export IRONIC_INSPECTOR_USERNAME
export IRONIC_INSPECTOR_PASSWORD

for overlay in "${BMO_OVERLAYS[@]}"; do
echo "${IRONIC_USERNAME}" > "${overlay}/ironic-username"
echo "${IRONIC_PASSWORD}" > "${overlay}/ironic-password"
if [[ "${overlay}" =~ release-0\.[1-5]$ ]]; then
echo "${IRONIC_INSPECTOR_USERNAME}" > "${overlay}/ironic-inspector-username"
echo "${IRONIC_INSPECTOR_PASSWORD}" > "${overlay}/ironic-inspector-password"
fi
done

for overlay in "${IRONIC_OVERLAYS[@]}"; do
echo "IRONIC_HTPASSWD=$(htpasswd -n -b -B "${IRONIC_USERNAME}" "${IRONIC_PASSWORD}")" > \
"${overlay}/ironic-htpasswd"
envsubst < "${REPO_ROOT}/ironic-deployment/components/basic-auth/ironic-auth-config-tpl" > \
"${overlay}/ironic-auth-config"

if [[ "${overlay}" =~ -with-inspector ]]; then
IRONIC_INSPECTOR_AUTH_CONFIG_TPL="/tmp/ironic-inspector-auth-config-tpl"
curl -o "${IRONIC_INSPECTOR_AUTH_CONFIG_TPL}" https://raw.githubusercontent.com/metal3-io/baremetal-operator/release-0.5/ironic-deployment/components/basic-auth/ironic-inspector-auth-config-tpl
envsubst < "${IRONIC_INSPECTOR_AUTH_CONFIG_TPL}" > \
"${overlay}/ironic-inspector-auth-config"
echo "INSPECTOR_HTPASSWD=$(htpasswd -n -b -B "${IRONIC_INSPECTOR_USERNAME}" \
"${IRONIC_INSPECTOR_PASSWORD}")" > "${overlay}/ironic-inspector-htpasswd"
fi
done

# We need to gather artifacts/logs before exiting also if there are errors
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions ironic-deployment/overlays/e2e-with-inspector/ironic-patch.yaml

This file was deleted.

This file was deleted.

51 changes: 0 additions & 51 deletions ironic-deployment/overlays/e2e-with-inspector/kustomization.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions test/e2e/config/ironic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ bmoIronicUpgradeSpecs:
initIronicKustomization: "../../ironic-deployment/overlays/e2e"
upgradeEntityKustomization: "../../config/overlays/e2e"
upgradeEntityName: "bmo"
- deployIronic: true
deployBMO: true
initBMOKustomization: "../../config/overlays/e2e-release-0.9"
initIronicKustomization: "../../ironic-deployment/overlays/e2e-release-24.0-with-inspector"
upgradeEntityKustomization: "../../ironic-deployment/overlays/e2e"
upgradeEntityName: "ironic"
- deployIronic: true
deployBMO: true
initBMOKustomization: "../../config/overlays/e2e-release-0.9"
Expand Down

0 comments on commit e8e6433

Please sign in to comment.