-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix: Wait for SSP operator to be ready after TLS policy tests #513
Conversation
/cc @0xFelix |
2403ffe
to
af47410
Compare
The TLS policy tests cause the operator to enter crash loop. This commit adds code that waits until it is ready. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
af47410
to
ba7059c
Compare
Kudos, SonarCloud Quality Gate passed! |
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
supernit about the comment but there's enough context so feel free to ignore.
@@ -103,6 +106,19 @@ var _ = Describe("Crypto Policy", func() { | |||
|
|||
AfterEach(func() { | |||
strategy.RevertToOriginalSspCr() | |||
|
|||
// Because of bug[1], the SSP operator will move to CrashLoopBackOff state, |
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.
supernit - I forget what the rules are for FIXMEs in this codebase but this strikes me as something we could mark as FIXME once that bug is resolved?
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.
There are no rules. Do you have a suggestion for what is a good way to mark as FIXME? Or simply prefix the comment with FIXME:
?
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 sonarcloud
complained when I tried this in past but if that's acceptable then something as simple as
// FIXME - Because of a known bug [1], the SSP operator will move to CrashLoopBackOff state,
// so we need to wait until it is running. [1] https://bugzilla.redhat.com/show_bug.cgi?id=2151248
would be great so it's discover-able in the future.
@akrejcir Please do not mention the bug in the commit message or in the PR description, because this would make the automation assume that this PR/commit would contain already the fix the the bug. |
Good to know. Removed the link. |
/retest |
Edit: Can't read properly, disregard this message. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix 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 |
/cherry-pick release-v0.17 |
@akrejcir: new pull request created: #519 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 kubernetes/test-infra repository. |
What this PR does / why we need it:
The TLS policy tests cause the operator to enter crash loop. This commit adds code that waits until it is ready.
Release note: