-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Properly handle resources with '-' in the group name #2712
Properly handle resources with '-' in the group name #2712
Conversation
Resources with '-' in the APIGroup now are properly formatted when passed to Ansible. For example ``` apiVersion: cert-manager.io/v1alpha2 kind: Certificate ``` will now result in a variabled called `_cert_manager_io_certificaterequest` instead of `_cert-manager_io_certificaterequest` Fixes operator-framework#2486
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.
Maybe update runner_test.go
with a TestMakeParameters
?
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.
+1 for @jmrodri suggestion and add changelog :-)
Also, could we add any data mock test for this scenario easily?
Other
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
9edeeda
to
704f941
Compare
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
/approve
New changes are detected. LGTM label has been removed. |
Resources with '-' in the APIGroup now are properly formatted when
passed to Ansible. For example
will now result in a variabled called
_cert_manager_io_certificaterequest
instead of
_cert-manager_io_certificaterequest
Fixes #2486
Description of the change:
Motivation for the change: