-
Notifications
You must be signed in to change notification settings - Fork 563
Test NetworkPolicy support in e2es #3630
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
base: master
Are you sure you want to change the base?
Conversation
4193fbc
to
1baad65
Compare
Latest revision of the PR adds build files for creating the test bundle image and the test catalog/index image. These are pushed to new tags to keep the old ones if ever needed. I also added a script for rebuilding those images and an addition to the documentation for using the script. |
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
@@ -46,6 +46,19 @@ To run a specific e2e test locally: | |||
$ make e2e-local TEST=TestCreateInstallPlanManualApproval | |||
``` | |||
|
|||
##### Updating test images |
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.
nit: should we also give the disclaimer that you need to be logged into quay from an account that has write access to the olmtest namespace?
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.
Done
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anik120 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 |
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 cancel
one discussion to be had
@@ -0,0 +1,14 @@ | |||
#!/usr/bin/env bash |
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.
Actually let's talk about this for a bit. Do we need a new script, or can we add this cleanly to the existing build_test_images.sh script?
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.
Or maybe what's actually required is proper naming of the two scripts. Right now it's confusing to me what does what if I just read the names. I have to read through the scripts to understand the difference (unnecessary cognitive overload in the workflow).
Maybe
build-update-versioned-index.sh
and
create-single-bundle-index.sh
?
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.
I think you're right about combining them, actually. All the images are for different end-to-end tests, so it makes sense to combine them and maybe rename the single script to the name I gave the new one, build_e2e_test_images.sh, to be more descriptive.
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.
I combined them. Let me know if you think that works, or if you think it would be better to separate the 2 index image builds.
DEVELOPMENT.md
Outdated
|
||
```sh | ||
./scripts/build_test_images.sh | ||
./scripts/build_e2e_test_images.sh | ||
``` |
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 if we are documenting these scripts, might as well write a short summary of what each script does.
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.
Done
Adds to script for building the single-bundle-index image used in the e2e tests. Also adds the necessary manifests and Containerfile for the bundle in that index, and adds a note in DEVELOPMENT.md about using the script for updating the images used in e2e tests. Signed-off-by: Tayler Geiger <tayler@redhat.com>
Description of the change:
Now that we've added support for NetworkPolicies, ensure we test that they can be installed correctly.
Motivation for the change:
Architectural changes:
Testing remarks:
Reviewer Checklist
/doc
[FLAKE]
are truly flaky and have an issue