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
MGMT-17413: Change pull secret validation on register/update cluster/infraenv to run only against the required images #6158
MGMT-17413: Change pull secret validation on register/update cluster/infraenv to run only against the required images #6158
Conversation
@danmanor: This pull request references MGMT-17413 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
@danmanor: This pull request references MGMT-17413 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
@danmanor: This pull request references MGMT-17413 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6158 +/- ##
==========================================
- Coverage 68.28% 68.27% -0.01%
==========================================
Files 240 241 +1
Lines 35799 35811 +12
==========================================
+ Hits 24445 24450 +5
- Misses 9198 9204 +6
- Partials 2156 2157 +1
|
23887a2
to
e8aa3fa
Compare
/test all |
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.
Just some nits, otherwise looks good.
FWIW this was added way back when we first started supporting multiple versions. So it's effectively been like this forever: #805
e8aa3fa
to
0719712
Compare
/retest |
/retest |
0719712
to
0ff2d92
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.
This still ended up quite a bit more complicated than I think it needs to be.
Can we also pull the pull secret validator into it's own file?
It's strange that it's buried in this file with a bunch of other cluster validation code.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danmanor 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 |
0ff2d92
to
e2b81ce
Compare
e2b81ce
to
e546277
Compare
/hold |
…infraenv to run only against the required images
114cc31
to
db098fd
Compare
db098fd
to
3cafbfe
Compare
@danmanor: all tests passed! Full PR test history. Your PR dashboard. 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. |
/lgtm |
/unhold |
[ART PR BUILD NOTIFIER] This PR has been included in build ose-agent-installer-api-server-container-v4.17.0-202404301246.p0.g8c73c0e.assembly.stream.el8 for distgit ose-agent-installer-api-server. |
Currently, assisted-service performs validation of the user pull secret during actions like registering / updating a cluster / infraenv, in which it checks that the pull secret contains the tokens for all release images. Therefore, currently we can't add nightly release images to stage environment as it blocks users without the right token from installing clusters with different release images. To mitigate this, I am changing the validation on register/update cluster to run against the cluster's release image registry, and register/update Infraenv to run against images besides release images.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist