-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Default config no longer sets a whitelist #19829
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
Default config no longer sets a whitelist #19829
Conversation
| ImagePolicyConfig: configapi.ImagePolicyConfig{ | ||
| AllowedRegistriesForImport: configapi.DefaultAllowedRegistriesForImport, | ||
| }, | ||
| ImagePolicyConfig: configapi.ImagePolicyConfig{}, |
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.
is the constant even used anywhere anymore then? can we get rid of it?
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.
in the e2e tests
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.
and in the integration tests
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.
so should we move the constant into the test package? seems misleading/confusing to call if defaultallowedregistriesforimport in our core packages when it's not actually that.
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.
We could call it recommended.
soltysh
left a comment
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, but I agree with Ben, if that default is not being used in the main code it should live in the tests only.
39f893f to
c1ee61c
Compare
|
Moved to a private constant in test. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bparees, smarterclayton The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Add an integration test that validates the whitelist. We don't set this by default in installer, and in the future we want it to by dynamic on a cluster. In general, this is an optional setting.
c1ee61c to
70243fd
Compare
|
New changes are detected. LGTM label has been removed. |
|
/retest |
Since openshift/origin#19829 (3.10+) Signed-off-by: Michal Minář <[email protected]>
Since openshift/origin#19829 (3.10+) Signed-off-by: Michal Minář <[email protected]>
Add an integration test that validates the whitelist. We don't set this
by default in installer, and in the future we want it to by dynamic on a
cluster. In general, this is an optional setting.
@bparees
Enables openshift/image-registry#88