Skip to content

Commit 37048ae

Browse files
Merge pull request #2908 from metal3-io-bot/cherry-pick-2904-to-release-1.11
🌱 Rename ephemeral cluster name to bootstrap cluster
2 parents d533e8a + 37c3cd8 commit 37048ae

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

docs/e2e-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ order:
103103
- Node reuse
104104
- Re-pivoting
105105

106-
However, in case we need to run them in the ephemeral cluster pivoting and
106+
However, in case we need to run them in the bootstrap cluster pivoting and
107107
re-pivoting should be ignored.
108108

109109
### Remediation based feature tests
@@ -118,10 +118,10 @@ Independent from the previous tests and can run independently includes:
118118
[in the middle of the remediation test](https://github.com/metal3-io/cluster-api-provider-metal3/blob/8d08f375de93a793f839b42b5ec40e6bebf98664/test/e2e/remediation_test.go#L108)
119119
for practical reasons at the moment.
120120

121-
The ephemeral cluster is first launched using
121+
The bootstrap cluster is first launched using
122122
[metal3-dev-env](https://github.com/metal3-io/metal3-dev-env). The remediation,
123123
inspection and Metal3Remediation tests are then run with the controllers still
124-
in the ephemeral cluster either before pivoting or after re-pivoting.
124+
in the bootstrap cluster either before pivoting or after re-pivoting.
125125

126126
### clusterctl upgrade tests
127127

scripts/ci-e2e.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ M3_DEV_ENV_PATH="${M3_DEV_ENV_PATH:-${WORKING_DIR}/metal3-dev-env}"
4141
clone_repo "${M3_DEV_ENV_REPO}" "${M3_DEV_ENV_BRANCH}" "${M3_DEV_ENV_PATH}"
4242

4343
# Config devenv
44-
# SKIP_NODE_IMAGE_PREPULL is set to true to avoid dev-env downloading the node
44+
# SKIP_NODE_IMAGE_PREPULL is set to true to avoid dev-env downloading the node
4545
# image
4646
cat <<-EOF >"${M3_DEV_ENV_PATH}/config_${USER}.sh"
4747
export CAPI_VERSION="v1beta2"
@@ -74,7 +74,7 @@ case "${GINKGO_FOCUS:-}" in
7474
sed -i "s/^export NUM_NODES=.*/export NUM_NODES=${NUM_NODES:-50}/" "${M3_DEV_ENV_PATH}/config_${USER}.sh"
7575
mkdir -p "${CAPI_CONFIG_FOLDER}"
7676
echo 'CLUSTER_TOPOLOGY: true' >"${CAPI_CONFIG_FOLDER}/clusterctl.yaml"
77-
echo 'export EPHEMERAL_CLUSTER="minikube"' >>"${M3_DEV_ENV_PATH}/config_${USER}.sh"
77+
echo 'export BOOTSTRAP_CLUSTER="minikube"' >>"${M3_DEV_ENV_PATH}/config_${USER}.sh"
7878
;;
7979
esac
8080

scripts/environment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ elif [[ "${OS}" == "opensuse-leap" ]]; then
4646
fi
4747

4848
if [ "${CONTAINER_RUNTIME}" == "docker" ]; then
49-
export EPHEMERAL_CLUSTER="kind"
49+
export BOOTSTRAP_CLUSTER="kind"
5050
else
51-
export EPHEMERAL_CLUSTER="minikube"
51+
export BOOTSTRAP_CLUSTER="minikube"
5252
fi
5353

5454
export FROM_K8S_VERSION=${FROM_K8S_VERSION:-"v1.33.5"}

scripts/fetch_manifests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DIR_NAME_AFTER_REPIVOT="/tmp/manifests/bootstrap-after-repivot"
1010
if [[ -d "${DIR_NAME}" ]] && [[ -d "${DIR_NAME_AFTER_PIVOT}" ]]; then
1111
DIR_NAME="${DIR_NAME_AFTER_REPIVOT}"
1212
mkdir -p "${DIR_NAME}"
13-
# Ephemeral cluster kubeconfig
13+
# Bootstrap cluster kubeconfig
1414
kconfig="${KUBECONFIG_BOOTSTRAP}"
1515
elif [[ -d "${DIR_NAME}" ]] && [[ ! -d "${DIR_NAME_AFTER_PIVOT}" ]]; then
1616
DIR_NAME="${DIR_NAME_AFTER_PIVOT}"
@@ -19,7 +19,7 @@ elif [[ -d "${DIR_NAME}" ]] && [[ ! -d "${DIR_NAME_AFTER_PIVOT}" ]]; then
1919
kconfig="${KUBECONFIG_WORKLOAD}"
2020
else
2121
mkdir -p "${DIR_NAME}"
22-
# Ephemeral cluster kubeconfig
22+
# Bootstrap cluster kubeconfig
2323
kconfig="${KUBECONFIG_BOOTSTRAP}"
2424
fi
2525

@@ -58,4 +58,4 @@ for NAMESPACE in ${NAMESPACES}; do
5858
kubectl --kubeconfig="${kconfig}" get -n "${NAMESPACE}" -o yaml "${name}" | tee "${DIR_NAME}/${NAMESPACE}/${kind}/$(basename "${name}").yaml" || true
5959
done
6060
done
61-
done
61+
done

test/e2e/pivoting.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ func pivoting(ctx context.Context, inputGetter func() PivotingInput) {
8383
}
8484

8585
By("Fetch container logs")
86-
ephemeralCluster := os.Getenv("EPHEMERAL_CLUSTER")
86+
bootstrapCluster := os.Getenv("BOOTSTRAP_CLUSTER")
8787
fetchContainerLogs(&generalContainers, input.ArtifactFolder, input.E2EConfig.MustGetVariable("CONTAINER_RUNTIME"))
88-
if ephemeralCluster == Kind {
88+
if bootstrapCluster == Kind {
8989
fetchContainerLogs(&ironicContainers, input.ArtifactFolder, input.E2EConfig.MustGetVariable("CONTAINER_RUNTIME"))
9090
}
9191

@@ -109,7 +109,7 @@ func pivoting(ctx context.Context, inputGetter func() PivotingInput) {
109109

110110
By("Remove Ironic containers from the source cluster")
111111
ironicDeploymentType := IronicDeploymentTypeBMO
112-
if ephemeralCluster == Kind {
112+
if bootstrapCluster == Kind {
113113
ironicDeploymentType = IronicDeploymentTypeLocal
114114
} else if GetBoolVariable(input.E2EConfig, "USE_IRSO") {
115115
ironicDeploymentType = IronicDeploymentTypeIrSO
@@ -394,8 +394,8 @@ func rePivoting(ctx context.Context, inputGetter func() RePivotingInput) {
394394
})
395395

396396
By("Reinstate Ironic containers and BMH")
397-
ephemeralCluster := os.Getenv("EPHEMERAL_CLUSTER")
398-
if ephemeralCluster == Kind {
397+
bootstrapCluster := os.Getenv("BOOTSTRAP_CLUSTER")
398+
if bootstrapCluster == Kind {
399399
bmoPath := input.E2EConfig.MustGetVariable("BMOPATH")
400400
ironicCommand := bmoPath + "/tools/run_local_ironic.sh"
401401
//#nosec G204:gosec

test/e2e/upgrade_clusterctl_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ func preInitFunc(clusterProxy framework.ClusterProxy, bmoRelease string, ironicR
296296
installCertManager(clusterProxy)
297297
// Remove ironic
298298
By("Remove Ironic containers from the source cluster")
299-
ephemeralCluster := os.Getenv("EPHEMERAL_CLUSTER")
299+
bootstrapCluster := os.Getenv("BOOTSTRAP_CLUSTER")
300300
ironicDeploymentType := IronicDeploymentTypeBMO
301-
if ephemeralCluster == Kind {
301+
if bootstrapCluster == Kind {
302302
ironicDeploymentType = IronicDeploymentTypeLocal
303303
} else if GetBoolVariable(e2eConfig, "USE_IRSO") {
304304
ironicDeploymentType = IronicDeploymentTypeIrSO
@@ -442,8 +442,8 @@ func preCleanupManagementCluster(clusterProxy framework.ClusterProxy, ironicRele
442442
// Reinstall ironic
443443
reInstallIronic := func() {
444444
By("Reinstate Ironic containers and BMH")
445-
ephemeralCluster := os.Getenv("EPHEMERAL_CLUSTER")
446-
if ephemeralCluster == Kind {
445+
bootstrapCluster := os.Getenv("BOOTSTRAP_CLUSTER")
446+
if bootstrapCluster == Kind {
447447
By("Install Ironic in the source cluster as containers")
448448
bmoPath := e2eConfig.MustGetVariable("BMOPATH")
449449
ironicCommand := bmoPath + "/tools/run_local_ironic.sh"

0 commit comments

Comments
 (0)