-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
⚠️ (go/v3-alpha) bump cert-manager CRs to v1 #1840
⚠️ (go/v3-alpha) bump cert-manager CRs to v1 #1840
Conversation
for go/v3-alpha. TestContext has been updated to be cluster version- aware such that the correct cert-manager bundle URL is applied. pkg/plugin/v3/scaffolds/internal/templates/config: cert-manager CRs have apiVersion v1 test/e2e/utils: KubectlVersion -> KubernetesVersion, which now gets created in NewTestContext. cert-manager install funcs use this version to get the correct bundle for a particular cluster version test/e2e/{v2,v3}: update {Install,Uninstall}CertManager() to include new 'hasv1beta2CRs' boolean arg, which depends on plugin being tested
158f79d
to
ea3a94a
Compare
Didn't see any recent activity on #1667 so I rebased and updated that code. /ping @MartinForReal |
|
||
const ( | ||
prometheusOperatorVersion = "0.33" | ||
prometheusOperatorURL = "https://raw.githubusercontent.com/coreos/prometheus-operator/release-%s/bundle.yaml" |
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.
wdyt about we keep all const on the top of this file?
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.
Usually I would do that, but these variables are only relevant to two methods in the entire file. Ditto for cert-manager variables.
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.
IMO the const centralized on top is a good practice that should be always followed.
But lets no block it because of this nit.
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.
IMO we just need to address a nit: https://github.com/kubernetes-sigs/kubebuilder/pull/1840/files#r525623927
Otherwise, it shows great
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, estroz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
This PR bumps cert-manager CR apiVersion to v1 from v1beta2 for go/v3-alpha. TestContext has been updated to be cluster version-aware such that the correct cert-manager bundle URL is applied.
Closes #1666
Closes #1667