-
Notifications
You must be signed in to change notification settings - Fork 66
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 "should succeed with the kubevirt cluster being deleted" unit test #259
Conversation
this unit test is broken. This PR fixes it by populating the `KubevirtClusterReconciler.APIReader` field in unit-test, for mocking. Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
`make generate-kccm-flavors` generates wrong manifests, setting a constant names where we should use variables. This commit fixes the `hack/kccm-flavor-gen.sh` script so it will replace the hard coded names with the right variables. Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
/ok-to-test |
|
||
|
||
sed -i \ | ||
-E "s|(namespace: )kvcluster|\1\${NAMESPACE}|g;s|(^.*cluster-name=)kvcluster|\1\${CLUSTER_NAME}|g" \ |
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.
Do you know if we can parameterize it at cloud-provider-kubevirt with something like https://github.com/cert-manager/cert-manager/blob/f970eca76265ff22c868dab3699cdd3cae26e90f/deploy/charts/cert-manager/templates/webhook-deployment.yaml#L68-L69
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nunnatsa, qinqon 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 |
/lgtm |
What this PR does / why we need it
This unit test is broken. This PR fixes it by populating the
KubevirtClusterReconciler.APIReader
field in unit-test, for mocking.In addition, this PR also fixes the
hack/kccm-flavor-gen.sh
script so it willreplace the hard coded names with the right variables.
Which issue this PR fixes
fixes #258
Release notes: