Separate kustomization from image creation and fix HSM password loading for adoption #3579
+67
−45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Playbook Separation (based on PR #3543)
When performing Barbican adoption from OSP 17.1 to RHOSO 18, the image
creation and kustomization need to happen at different times. This PR
separates the logic into:
HSM client software and sets up OpenShift secrets (certificates and login)
the Barbican control plane to use Proteccio HSM
HSM Password Loading Fix
Added logic to load
cifmw_hsm_passwordfrom the Zuul secret file at/var/tmp/qe-secrets/proteccio_pin.yamlwhen the variable is not alreadydefined. This file is created by the
qe-creds-crc.yamlpre-run playbookin the
components-integration-configrepository.This fixes the issue where the playbook would fail with:
'cifmw_hsm_password' is undefined