-
Notifications
You must be signed in to change notification settings - Fork 20
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
[OSPRH-11235] Do not fail when clouds CM exists #240
[OSPRH-11235] Do not fail when clouds CM exists #240
Conversation
Skipping CI for Draft Pull Request. |
57da36a
to
779f50c
Compare
/test precommit-check |
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.
Thank you @kstrenkova! 🙏
779f50c
to
2bb008f
Compare
The Ensure[Horizon|Tobiko]CloudsYAML function was failing when the CM containing the modified clouds.yaml already existed: Object openstack/horizontest-clouds-config is already owned by another HorizonTest controller horizontest-tests This patch does two things: - Ensures that we do not create the modified clouds.yaml when it already exists. - Removes the duplicate implementation of of the Ensure*CloudsYAML function and replaces it with EnsureCloudsConfigMapExists.
2bb008f
to
fa3c1dc
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/71c97e8ffb6b455bb3c9a2ba24d20a9f ✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 07m 03s |
recheck |
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 have tested this change and it seems to be working. Lgtm.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kstrenkova, lpiwowar 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 |
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.
Some questions but in general lgtm.
helper *helper.Helper, | ||
labels map[string]string, | ||
) (ctrl.Result, error) { | ||
const openstackConfigMapName = "openstack-config" |
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.
(blocking) question: I guess this one is not required right? Related as well with @kstrenkova
comment.
Found TestOperatorCloudsConfigMapName in the volumes.go files.
labels map[string]string, | ||
) (ctrl.Result, error) { | ||
const openstackConfigMapName = "openstack-config" | ||
const testOperatorCloudsConfigMapName = "test-operator-clouds-config" |
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.
(non-blocking) question: would take the name from pkg.util.common.go ? So we don't need to maintain same const in two different places.
17b87f3
into
openstack-k8s-operators:main
/cherry-pick 18.0-fr1 |
@lpiwowar: #240 failed to apply on top of branch "18.0-fr1":
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-sigs/prow repository. |
The Ensure[Horizon|Tobiko]CloudsYAML function was failing when the CM containing the modified clouds.yaml already existed:
Object openstack/horizontest-clouds-config is already owned
by another HorizonTest controller horizontest-tests
This patch does two things:
Ensures that we do not create the modified clouds.yaml when it already exists.
Removes the duplicate implementation of of the Ensure*CloudsYAML function and replaces it with EnsureCloudsConfigMapExists.