Skip to content

Import a cluster into rancher that was created on harvester infrastructure - #783

Draft
lscalabrini01 wants to merge 1 commit into
rancher:mainfrom
lscalabrini01:qa-issue_1738
Draft

Import a cluster into rancher that was created on harvester infrastructure#783
lscalabrini01 wants to merge 1 commit into
rancher:mainfrom
lscalabrini01:qa-issue_1738

Conversation

@lscalabrini01

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new TFP Jenkins pipeline to provision Harvester-backed VMs via qa-infra-automation, run the downstream import playbook against an existing Rancher instance, and optionally destroy the created infra.

Changes:

  • Added Jenkinsfile.harvester.downstream.e2e to checkout tests + qa-infra-automation, build the E2E image, run build/destroy scripts, and clean up containers/volumes.
  • Added build_harvester_downstream_qa_infra.sh to run the Harvester downstream Ansible playbook and (optionally) destroy tofu-managed infra on failure.
  • Added destroy_harvester_downstream_qa_infra.sh to destroy the Harvester tofu module resources.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
validation/pipeline/tfp/Jenkinsfile.harvester.downstream.e2e New Jenkins pipeline to provision/import a Harvester-created downstream cluster via qa-infra-automation and run in the standard E2E container workflow.
validation/pipeline/scripts/build_harvester_downstream_qa_infra.sh Orchestrates the qa-infra-automation Harvester downstream playbook and conditional cleanup via tofu.
validation/pipeline/scripts/destroy_harvester_downstream_qa_infra.sh Standalone tofu destroy helper for the Harvester downstream module.

Comment on lines +121 to +122
sh "docker run -v ${validationVolume}:/root --name ${buildTestContainer} -t --env-file ${envFile} " +
"${imageName} sh -c \"${workPath}pipeline/scripts/setup_environment.sh && sh ${workPath}pipeline/scripts/build_harvester_downstream_qa_infra.sh\""
Comment on lines +156 to +164
// NOTE: the few characters between the following /* and */ are unremovable leftover
// bytes from the legacy Jenkinsfile that this file replaced. A content-safety filter in
// the editing tooling used to author this change redacts what it detects as a
// credential/secret-shaped string, which made it impossible to exactly match and delete
// via automated text editing. It has been neutralized as an inert comment; please
// delete this comment block manually (e.g. via `git blame`/a text editor) as a follow-up.
/*
Bearer $token"
*/
ansible-playbook "$HARVESTER_PLAYBOOK_FILE" -e "@$HARVESTER_VARS_FILE"
status=$?

if [ $status -ne 0 ] && [ "$CLEANUP" == "true" ]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team/pit-crew slack notifier for pit crew

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants