Skip to content
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 invalid failure event for generate policy #1413

Merged
merged 7 commits into from
Dec 22, 2020

Conversation

realshuting
Copy link
Member

This PR

  1. fixes invalid failure events for generate policy:
 ✗ k get event | grep PolicyFailed
42s         Warning   PolicyFailed      namespace/t1        policy add-ns-quota failed to apply: <nil>
  1. avoids generating "non-applicable " generateRequest for the policy that does not apply:
✗ k get event | grep PolicyFailed
16s         Warning   PolicyFailed      namespace/t1        policy add-networkpolicy failed to apply: generate request gr-nnqqn: policy add-networkpolicy does not apply to resource { Namespace  t1}


✗ k get gr -n kyverno
NAME       POLICY              RESOURCEKIND   RESOURCENAME   RESOURCENAMESPACE   STATUS      AGE
gr-nnqqn   add-networkpolicy   Namespace      t1                                             52s

@realshuting realshuting merged commit d0347af into kyverno:main Dec 22, 2020
@realshuting realshuting deleted the 1398_rcr_throttling branch January 4, 2021 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants