Skip to content
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

Add test for configpolicy cleanup during uninstall #541

Merged

Conversation

JustinKuli
Copy link
Contributor

Tests that the ConfigurationPolicy CRD does not become stuck due to pruneObjectBehavior finalizers when the controller is uninstalled.

Refs:

Signed-off-by: Justin Kulikauskas jkulikau@redhat.com

@openshift-ci
Copy link

openshift-ci bot commented Jan 19, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Tests that the ConfigurationPolicy CRD does not become stuck due to
pruneObjectBehavior finalizers when the controller is uninstalled.

Refs:
 - https://issues.redhat.com/browse/ACM-2923

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
@JustinKuli JustinKuli force-pushed the configpol-uninstall-cleanup branch 2 times, most recently from 953fcb8 to 277f7e0 Compare January 20, 2023 16:27
When a selector is given, `kubectl logs` will only get 10 lines. Now it
will get all the logs for the container.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
@JustinKuli JustinKuli requested review from mprahl and dhaiducek and removed request for mprahl January 20, 2023 17:52
@JustinKuli
Copy link
Contributor Author

The tests here should fail until open-cluster-management-io/config-policy-controller#96 is merged into stolostron.

But this previous run shows it passing with a dev image: https://github.com/stolostron/governance-policy-framework/actions/runs/3969435606/jobs/6803925704, so I think it's ready for initial review at least.

mprahl
mprahl previously approved these changes Jan 20, 2023
Now it targets the correct namespace, and puts some extra info into the
ginkgo writer, which will be printed if the spec fails.

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
@openshift-ci openshift-ci bot added the lgtm label Jan 23, 2023
@openshift-ci
Copy link

openshift-ci bot commented Jan 23, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JustinKuli, mprahl

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 7fd114d into stolostron:main Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants