Skip to content

Commit b24faa5

Browse files
Use IRSO in e2e tests
Signed-off-by: Muhammad Adil Ghaffar <[email protected]>
1 parent d942381 commit b24faa5

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

scripts/ci-e2e.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ update_kustomize_image quay.io/metal3-io/ironic IRONIC_IMAGE "${REPO_ROOT}"/test
184184
# Apply envsubst to kustomization.yaml files in BMO and Ironic overlays
185185
kustomize_envsubst "${REPO_ROOT}"/test/e2e/data/bmo-deployment/overlays/pr-test
186186
kustomize_envsubst "${REPO_ROOT}"/test/e2e/data/ironic-deployment/overlays/pr-test
187+
kustomize_envsubst "${REPO_ROOT}"/test/e2e/data/ironic-standalone-operator/operator
188+
kustomize_envsubst "${REPO_ROOT}"/test/e2e/data/ironic-standalone-operator/ironic
187189

188190
# Create usernames and passwords and other files related to ironi basic auth if they
189191
# are missing

test/e2e/config/e2e_conf.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ variables:
235235
IRONIC_RELEASE_29.0: "data/ironic-deployment/overlays/release-29.0"
236236
IRONIC_RELEASE_PR_TEST: "data/ironic-deployment/overlays/pr-test"
237237
IRONIC_RELEASE_LATEST: "data/ironic-deployment/overlays/release-latest"
238+
IRSO_OPERATOR_LATEST: "data/ironic-standalone-operator/operator"
239+
IRSO_IRONIC_26.0: "data/ironic-standalone-operator/ironic/overlays/release-26.0"
240+
IRSO_IRONIC_27.0: "data/ironic-standalone-operator/ironic/overlays/release-27.0"
241+
IRSO_IRONIC_29.0: "data/ironic-standalone-operator/ironic/overlays/release-29.0"
242+
IRSO_IRONIC_MAIN: "data/ironic-standalone-operator/ironic/overlays/release-main"
238243
BMO_RELEASE_0.8: "data/bmo-deployment/overlays/release-0.8"
239244
BMO_RELEASE_0.9: "data/bmo-deployment/overlays/release-0.9"
240245
BMO_RELEASE_0.10: "data/bmo-deployment/overlays/release-0.10"

test/e2e/pivoting.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,17 @@ func pivoting(ctx context.Context, inputGetter func() PivotingInput) {
152152
By("Add Labels to hardwareData CRDs")
153153
labelHDCRDs(ctx, input.BootstrapClusterProxy)
154154

155-
By("Install Ironic in the target cluster")
156-
// TODO(dtantsur): support ironic-standalone-operator
155+
By("Install Ironic Standalone Operator in the target cluster")
157156
ironicDeployLogFolder := filepath.Join(os.TempDir(), "target_cluster_logs", "ironic-deploy-logs", input.TargetCluster.GetName())
158-
ironicKustomization := input.E2EConfig.MustGetVariable("IRONIC_RELEASE_PR_TEST")
157+
ironicKustomization := input.E2EConfig.MustGetVariable("IRSO_OPERATOR_LATEST")
159158
By(fmt.Sprintf("Installing Ironic from kustomization %s on the target cluster", ironicKustomization))
160159
err = BuildAndApplyKustomization(ctx, &BuildAndApplyKustomizationInput{
161160
Kustomization: ironicKustomization,
162161
ClusterProxy: input.TargetCluster,
163162
WaitForDeployment: true,
164163
WatchDeploymentLogs: true,
165164
LogPath: ironicDeployLogFolder,
166-
DeploymentName: "baremetal-operator-ironic",
165+
DeploymentName: "ironic-stanalone-operator",
167166
DeploymentNamespace: ironicNamespaceObj.Name,
168167
WaitIntervals: input.E2EConfig.GetIntervals("default", "wait-deployment"),
169168
})

0 commit comments

Comments
 (0)