Skip to content

Conversation

treydock
Copy link
Contributor

@treydock treydock commented Nov 3, 2023

Explanation

Related issue

Closes #4317
Closes #8568

Milestone of this PR

/milestone 1.11.1

What type of PR is this

/kind feature

Proposed Changes

Allow the policy "kind" to be changed to Policy which will allow the Kyverno policies chart to deploy namespaced policies.

Fixes kyverno#4317 kyverno#8568

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
@treydock treydock requested a review from eddycharly as a code owner November 3, 2023 15:01
@treydock
Copy link
Contributor Author

treydock commented Nov 3, 2023

/cherry-pick release-1.11

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2f5eb56) 33.56% compared to head (f49a6ec) 33.56%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8827   +/-   ##
=======================================
  Coverage   33.56%   33.56%           
=======================================
  Files         315      315           
  Lines       24905    24905           
=======================================
  Hits         8359     8359           
  Misses      15754    15754           
  Partials      792      792           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@MariamFahmy98 MariamFahmy98 left a comment

Choose a reason for hiding this comment

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

In case of Policy, how users set its namespace through the chart values?

@treydock
Copy link
Contributor Author

treydock commented Nov 5, 2023

In case of Policy, how users set its namespace through the chart values?

Can set with --namespace flag in Helm which will set the appropriate namespace for the resources. The docs don't seem to state this but it's mentioned on several Github issues, such as helm/helm#5465 (comment)

@treydock
Copy link
Contributor Author

treydock commented Nov 5, 2023

Typically if you do set namespace the default is like .Release.Namespace which comes from the --namespace flag. I figured best to avoid possible confusion by allowing namespace to be set in 2 different ways that may not match, ie flag and values.yaml.

@treydock
Copy link
Contributor Author

@realshuting This has hold-merge label, is there still something this PR is waiting on?

@realshuting
Copy link
Member

@realshuting This has hold-merge label, is there still something this PR is waiting on?

No, 1.11.0 is out now. I removed the label, please go ahead with the merge.

@realshuting realshuting merged commit 871d8ed into kyverno:main Nov 16, 2023
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Nov 16, 2023
Fixes #4317 #8568

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Co-authored-by: shuting <shuting@nirmata.com>
realshuting added a commit that referenced this pull request Nov 16, 2023
Fixes #4317 #8568

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Co-authored-by: treydock <tdockendorf@osc.edu>
Co-authored-by: shuting <shuting@nirmata.com>
@realshuting realshuting added the cherry-pick-completed The PR was cherry-picked (or merged) to required release branches label Nov 16, 2023
vishal-chdhry pushed a commit to vishal-chdhry/kyverno that referenced this pull request Jan 5, 2024
Fixes kyverno#4317 kyverno#8568

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Co-authored-by: shuting <shuting@nirmata.com>
vishal-chdhry pushed a commit to vishal-chdhry/kyverno that referenced this pull request Jan 5, 2024
Fixes kyverno#4317 kyverno#8568

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Co-authored-by: shuting <shuting@nirmata.com>
vishal-chdhry pushed a commit to vishal-chdhry/kyverno that referenced this pull request Jan 6, 2024
Fixes kyverno#4317 kyverno#8568

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Co-authored-by: shuting <shuting@nirmata.com>
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.12.0
Projects
None yet
3 participants