-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[installer]: add secret template to certs #11524
Conversation
/werft run publish-to-kots 👍 started the job as gitpod-build-sje-cert-manager-update.1 |
e43d726
to
afb11a6
Compare
/werft run publish-to-kots 👍 started the job as gitpod-build-sje-cert-manager-update.3 |
afb11a6
to
4677847
Compare
This introduces the `secretTemplate` parameter
This allows them to be picked up by the KOTS support bundle
4677847
to
7aab955
Compare
/werft run publish-to-kots 👍 started the job as gitpod-build-sje-cert-manager-update.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Like we discussed, We should be showcasing the cert-manager requirement >=1.5
.
started the job as gitpod-build-sje-cert-manager-update.7 because the annotations in the pull request description changed |
Tested that labels have been applied to the certificates and I do not see any adverse effects this would have on workspace components. |
Description
The support bundle secret collector looks for a label
app=gitpod
. As of v1.5, cert-manager supports asecretTemplate
option on the certs which adds a label and/or annotation to the secrets - NB I haven't updated to latest version of cert-manager as that requires a change of name and lots of updates to packages, including a Helm one that would require renaming the internal charts to lower case valuesThis upgrades cert-manager to latest (included renaming the package), adds the labels to the secret and configures the
secretTemplate
. As this is still cert-manager v1, this does not seems to introduce any regressions and have tested both upgrades and fresh installs.The reason for this change is because I was helping a Discord user debug a cert issue and had no way of knowing if the cert had been created from the support bundle. This solves this issue by included the secret metadata in the support bundle
How to test
Install via KOTS or Installer and check for
app: gitpod
in the secret's labelsRelease Notes
Documentation
Werft options: