-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
⚠️Remove hard code manifest version and hash #3707
Conversation
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.
Hey @jichenjc! I'm guessing you are still working on this PR so I'll do a full review when you're done with it.
But just a couple of thoughts:
- Feel free to add
Fixes #3505
in the description of this PR so it's linked to the corresponding issue. - I wonder if the vars
embeddedCertManagerManifestVersion
andembeddedCertManagerManifestHash
can be part of thecertManagerClient
rather than used as globals. That way, we can set these values in the client constructor. WDYT?
// run `go test` against this package. THe Test_VersionMarkerUpToDate will output | ||
// the expected hash if it does not match the hash here. | ||
embeddedCertManagerManifestHash = "af8c08a8eb65d102ba98889a89f4ad1d3db5d302edb5b8f8f3e69bb992faa211" | ||
certmanagerVersionLable = "helm.sh/chart" |
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.
Be aware that currently the label is helm.sh/chart=cert-manager-v0.16.1
. We've been using just the value v0.16.1
in our embeddedCertManagerManifestVersion
.
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.
exactly, I noticed that , thanks for the reminder
and I will check all above comments then reflect in my PR when it's read for review :)
thanks~
01bdef0
to
98709af
Compare
1b0f0a1
to
6997768
Compare
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.
@jichenjc thanks for this PR!
first pass, but overall the approach looks good to me
/milestone v0.3.11 |
Changed the base branch to be release-0.3, we'll have to forward-port these changes to v0.4 later |
/retest |
1ac5584
to
a948f88
Compare
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.
@jichenjc thanks for restarting this effort
Some nits, but overall I'm looking forward to get this merger soon
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.
@jichenjc thanks for addressing all the comments! really appreciated!
lgtm pending addressing CI errors
005f66d
to
68dacb9
Compare
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
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.
@jichenjc One last thing. I think we'll be good to go after this. Thanks!
g.Expect(cm.embeddedCertManagerManifestVersion).ToNot(Equal(nil)) | ||
g.Expect(cm.embeddedCertManagerManifestHash).ToNot(Equal(nil)) |
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.
Since these values are strings it makes more sense to check if they are empty instead of nil because they'll technically always be not nil since the default will be ""
.
g.Expect(cm.embeddedCertManagerManifestVersion).ToNot(Equal(nil)) | |
g.Expect(cm.embeddedCertManagerManifestHash).ToNot(Equal(nil)) | |
g.Expect(cm.embeddedCertManagerManifestVersion).ToNot(BeEmpty()) | |
g.Expect(cm.embeddedCertManagerManifestHash).ToNot(BeEmpty()) |
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.
thanks for the reminder ~ :)
will update
@jichenjc: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Should this be a
|
/assign @CecileRobertMichon |
@vincepri why is this targeting v0.3? Is it fixing a bug or is it simply cleanup / enabling more flexibility? If not, maybe it belongs in 0.4, especially if it's breaking... |
I'm fine moving it to v0.4.0 - although the bug/PR came around v0.3.10 and didn't make it in |
@vincepri @CecileRobertMichon so please help to guide and confirm that I need target to v0.4 (I think it's master? ) thanks |
will let @fabriziopandini make the call based on the importance of the fix since he opened the original issue... My personal preference is to move all non-critical bugs to v0.4 at this point but if this is fixing something significant and the risk is low I'm fine with keeping it in 0.3. |
Given that this is a code cleanup, not user-facing, I'm ok to move this to v0.4.0 |
@vincepri @fabriziopandini @wfernandes thanks for point out |
/hold |
Closing in favor of #3908 /close |
@vincepri: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
⚠️ Fixes #3505
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):(*clusterClient).CertManager: changed from func() CertManagerClient to func() (CertManagerClient, error)
Client.CertManager: changed from func() CertManagerClient to func() (CertManagerClient, error)