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
OCPBUGS-29208: Fix for ACM Policy Generator Plugin #751
Conversation
Hi @edcdavid. Thanks for your PR. I'm waiting for a openshift-kni 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. |
…th 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
@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. |
/jira refresh |
@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. |
/jira refresh |
@edcdavid: This pull request references Jira Issue OCPBUGS-29208, 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. |
/jira refresh |
@edcdavid: This pull request references Jira Issue OCPBUGS-29208, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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-29208, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
/ok-to-test |
387a86c
to
80318c8
Compare
80318c8
to
7b223ce
Compare
7b223ce
to
a99632f
Compare
[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 |
@edcdavid: Jira Issue OCPBUGS-29208: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-29208 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. |
/cherry-pick release-4.15 |
@edcdavid: only openshift-kni org members may request cherry picks. If you are already part of the org, make sure to change your membership to public. Otherwise you can still do the cherry-pick manually. 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/test-infra repository. |
/cherry-pick release-4.15 |
@edcdavid: #751 failed to apply on top of branch "release-4.15":
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/test-infra repository. |
* 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
* 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
* 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
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
* 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
* 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
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 (see https://github.com/openshift-kni/cnf-features-deploy/blob/dc64c970fa59dacf387f1e432d6a46ea551dbb1c/ztp/policygenerator/policyGen/policyBuilder.go#L422). this leads to overloaded keys in the
clusterGroupUpgrade.Status.SafeResourceNames map.
Changes: