CASMTRIAGE-7616 make certmanager upgrade more robust, redo upgrade if issuers chart deploy fails #5603
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.
Description
If the cray-certmanger-issuers chart fails to deploy, the cert-manager upgrade step in prerequisites.sh will not reattempt to upgrade cert-manger because it doesn't test if the cray-certmanager-issuers chart is deployed.
The following changes were made to make the certmanager upgrade more robust:
Testing
Case 1: Certmanager and certmanager-issers have been upgraded but no certificates exist.
Case 2: Error message when certificates failed to restore
Case 3: Uninstalled cray-certmanager.
Upgrade ran smoothly and certificates were restored.
Case 4: Uninstalled cray-certmanager-issuers
Case 5: Check that if certmanager or certmanager-issuers are not deployed, certificates will not be attempted to be restored
Checklist
.github/CODEOWNERS
with the corresponding team in Cray-HPE.