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: ns labels matching #6020

Merged
merged 6 commits into from
Jan 18, 2023
Merged

Conversation

realshuting
Copy link
Member

@realshuting realshuting commented Jan 18, 2023

Signed-off-by: ShutingZhao shuting@nirmata.com

Explanation

Fixed namespace selector matching in wildcard policies.

Related issue

Closes #6015.

Milestone of this PR

/1.9.0

What type of PR is this

/bug

Proposed Changes

Proof Manifests

Checklist

  • I have read the contributing guidelines.
  • I have read the PR documentation guide and followed the process including adding proof manifests to this PR.
  • This is a bug fix and I have added unit tests that prove my fix is effective.
  • This is a feature and I have added CLI tests that are applicable.
  • My PR needs to be cherry picked to a specific release branch which is .
  • My PR contains new or altered behavior to Kyverno and
    • CLI support should be added and my PR doesn't contain that functionality.
    • I have added or changed the documentation myself in an existing PR and the link is:
    • I have raised an issue in kyverno/website to track the documentation update and the link is:

Further Comments

Signed-off-by: ShutingZhao <shuting@nirmata.com>
@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

Merging #6020 (055ed54) into main (0a19556) will increase coverage by 0.00%.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##             main    #6020   +/-   ##
=======================================
  Coverage   35.82%   35.83%           
=======================================
  Files         193      193           
  Lines       21114    21115    +1     
=======================================
+ Hits         7565     7566    +1     
  Misses      12713    12713           
  Partials      836      836           
Impacted Files Coverage Δ
pkg/engine/utils.go 72.91% <50.00%> (+0.11%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Signed-off-by: ShutingZhao <shuting@nirmata.com>
@realshuting realshuting enabled auto-merge (squash) January 18, 2023 07:57
@realshuting realshuting removed the request for review from vyankyGH January 18, 2023 07:58
Signed-off-by: ShutingZhao <shuting@nirmata.com>
@realshuting
Copy link
Member Author

/cherry-pick release-1.9

@@ -0,0 +1,4 @@
apiVersion: kuttl.dev/v1beta1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this anymore, our kuttl fork cleans up resources

@eddycharly
Copy link
Member

@realshuting can you use TestSteps in your kuttl test ?

@realshuting
Copy link
Member Author

@realshuting can you use TestSteps in your kuttl test ?

Updated!

@realshuting realshuting merged commit 36abeae into kyverno:main Jan 18, 2023
@gcp-cherry-pick-bot
Copy link

Cherry-pick failed with Merge error 36abeaecf93e88578076b7691d78c81111bc63d0 into temp-cherry-pick-7b5754-release-1.9

@realshuting realshuting added the cherry-pick-completed The PR was cherry-picked (or merged) to required release branches label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-completed The PR was cherry-picked (or merged) to required release branches cherry-pick-required milestone 1.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Selecting ressources with "*" prevents namespaceSelector to match labels
2 participants