-
Notifications
You must be signed in to change notification settings - Fork 562
test: patch existing CSV for a hotfix #1817
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
test: patch existing CSV for a hotfix #1817
Conversation
Hi @jeyaramashok. Thanks for your PR. I'm waiting for a operator-framework member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
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.
/ok-to-test
/retest |
@jeyaramashok: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
/assign @kevinrizza |
/approve |
/retest |
test/e2e/csv_e2e_test.go
Outdated
// Fetch the current csv | ||
fetchedCSV, err := fetchCSV(crc, csv.Name, testNamespace, csvSucceededChecker) | ||
require.NoError(GinkgoT(), err) | ||
|
||
// Update csv with modified deployment spec | ||
fetchedCSV.Spec.InstallStrategy.StrategySpec = strategyNew | ||
|
||
// Update the current csv | ||
_, err = crc.OperatorsV1alpha1().ClusterServiceVersions(testNamespace).Update(context.TODO(), fetchedCSV, metav1.UpdateOptions{}) | ||
require.NoError(GinkgoT(), err) |
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.
Could this all be done in an Eventually() command? As it is, the update command may occasionally fail if another resource modifies the CSV before it is fetched.
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.
sorry I missed this msg, I have update to include eventually() block https://github.com/operator-framework/operator-lifecycle-manager/pull/1817/files#diff-e94bc9e5ebd2b6db20f851288184630432208a5a772cf0515935707ad3660799R3034
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.
One change request, looks good otherwise.
/hold |
/hold cancel |
/test e2e-aws-olm |
/retest |
a3cc46a
to
273a2a8
Compare
This is a test for the hotfix scenario, where an existing CSV is patched directly to update the deployment spec. Ref: operator-framework#1774
33a45d5
to
286a63c
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankitathomas, ecordell, jeyaramashok 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 |
/retest |
/lgtm |
/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. |
Description of the change:
This is a e2e test case for hot fixing a CSV. In this scenario an existing CSV is patched directly to update the deployment spec.
Motivation for the change:
hot fix scenario described in #1774
Reviewer Checklist
/docs