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
[release-4.14] OCPBUGS-30571: Fix for ACM Policy Generator Plugin #757
[release-4.14] OCPBUGS-30571: Fix for ACM Policy Generator Plugin #757
Conversation
openshift-kni#756) * This commit fixes an issue happening when using policies generated with ACM Policy Generator Plugin. For ConfigurationPolicy kind, the name of the object and the inner template are the same when generated with ACM Gen. In comparison the PGT plugin, adds "-config" to the name of the inner template. this leads to overloaded keys in the clusterGroupUpgrade.Status.SafeResourceNames map. Changes: - namespace+"/"+name key used in the clusterGroupUpgrade.Status.SafeResourceNames map - use of namespace instead of namespace length in GetSafeResourceName - use of utf8.RuneCountInString() instead of len to support non english characters (see policy web hook at https://github.com/stolostron/governance-policy-propagator/blob/feb9abb241954d7ce64054d7c621b423deece8cf/api/v1/policy_webhook.go#L86-L87 ). - adding logs to display the safenames and lenghts * Addressing Jun's comments * Addinitonal fixes for map key * fix kuttl test
@edcdavid: This pull request references Jira Issue OCPBUGS-29208, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
@edcdavid: This pull request references Jira Issue OCPBUGS-30571, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@edcdavid: This pull request references Jira Issue OCPBUGS-30571, which is invalid:
Comment 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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jc-rh 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 |
1055079
into
openshift-kni:release-4.14
@edcdavid: Jira Issue OCPBUGS-30571: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-30571 has been moved to the MODIFIED state. 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 openshift-eng/jira-lifecycle-plugin repository. |
For ConfigurationPolicy kind, the name of the object and the inner template are the same when generated with ACM Gen.
In comparison the PGT plugin, adds "-config" to the name of the inner template. this leads to overloaded keys in the
clusterGroupUpgrade.Status.SafeResourceNames map.
Changes:
Addressing Jun's comments
Addinitonal fixes for map key
fix kuttl test