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

Add doc on how to write policy to generate rule for pod controllers. #665

Merged
merged 4 commits into from
Feb 1, 2020

Conversation

realshuting
Copy link
Member

Fix #612.

@@ -131,5 +131,14 @@ Operators supported:
- Equal
- NotEqual

# Auto generating rules for pod controllers
A pod policy is automatically applied to pod controllers. By default, Kyverno inserts an annotation `pod-policies.kyverno.io/autogen-controllers=all`, to generate an additional rule that is applied to pod controllers: DaemonSet, Deployment, Job, StatefulSet.
Copy link
Member

Choose a reason for hiding this comment

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

Suggest changing A pod policy is automatically applied to pod controllers to:

Writing policies on pods helps address all pod creation flows, but results in errors not being reported when a pod controller object is created. Kyverno solves this issue, by automatically generating rules for pod controllers from a rule written for a pod. 

This behavior is controlled by the  pod-policies.kyverno.io/autogen-controllers annotation. By default, ....

@JimBugwadia JimBugwadia merged commit ad9d82b into master Feb 1, 2020
@JimBugwadia JimBugwadia deleted the linter_improve branch February 1, 2020 02: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.

Add document on how to write a policy applies to pod controllers.
3 participants