Skip to content

Conversation

@smarterclayton
Copy link
Contributor

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

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 23, 2018
ImagePolicyConfig: configapi.ImagePolicyConfig{
AllowedRegistriesForImport: configapi.DefaultAllowedRegistriesForImport,
},
ImagePolicyConfig: configapi.ImagePolicyConfig{},
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the e2e tests

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@smarterclayton
Copy link
Contributor Author

smarterclayton commented May 23, 2018 via email

Copy link
Contributor

@soltysh soltysh left a 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.

@smarterclayton smarterclayton force-pushed the change_default_whitelist branch 2 times, most recently from 39f893f to c1ee61c Compare May 24, 2018 17:00
@smarterclayton
Copy link
Contributor Author

Moved to a private constant in test.

@bparees
Copy link
Contributor

bparees commented May 24, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 24, 2018
@openshift-ci-robot
Copy link

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/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.
@smarterclayton smarterclayton force-pushed the change_default_whitelist branch from c1ee61c to 70243fd Compare May 24, 2018 20:44
@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label May 24, 2018
@smarterclayton
Copy link
Contributor Author

/retest

@smarterclayton smarterclayton added the lgtm Indicates that a PR is ready to be merged. label May 25, 2018
@openshift-merge-robot openshift-merge-robot merged commit 2dcfb32 into openshift:master May 25, 2018
miminar pushed a commit to miminar/openshift-docs that referenced this pull request Jun 19, 2018
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/openshift-docs that referenced this pull request Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants