Skip to content

Add additional secrets deletion in uninstall script#2756

Merged
Daniel-Fan merged 1 commit intoIBM:scripts-devfrom
qpdpQ:remain-certificate-secret
Mar 2, 2026
Merged

Add additional secrets deletion in uninstall script#2756
Daniel-Fan merged 1 commit intoIBM:scripts-devfrom
qpdpQ:remain-certificate-secret

Conversation

@qpdpQ
Copy link
Contributor

@qpdpQ qpdpQ commented Feb 27, 2026

What this PR does / why we need it:
The uninstall script removes the cs-ca-certificate but does not remove the existing leaf-certificate secrets. As a result, if a user reinstalls the product in the same namespace, the cs-operator creates a new cs-ca-certificate, but cert-manager will continue reusing the old leaf-certificate secrets because they are still considered valid.
Since these leaf-certificate secrets were created before the leaf-certificate was issued, the cs-operator unable to find them so does not refresh them during reconciliation. This leads to a certificate mismatch between the newly generated CA certificate and the old leaf certificates, ultimately causing TLS validation failures.

Which issue(s) this PR fixes:
Fixes # https://github.ibm.com/PrivateCloud-analytics/CPD-Quality/issues/60029

Copy link
Contributor

@Daniel-Fan Daniel-Fan left a comment

Choose a reason for hiding this comment

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

Thanks @qpdpQ

It looks good to me to merge

@Daniel-Fan Daniel-Fan merged commit 612f7cf into IBM:scripts-dev Mar 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants