Skip to content

Commit

Permalink
updated note
Browse files Browse the repository at this point in the history
Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
  • Loading branch information
NoSkillGirl committed Oct 12, 2021
1 parent 3f46caf commit dc7d719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/docs/Writing policies/generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Deleting the policy containing a `generate` rule with a `data` object and `synch
Kubernetes has many default resource types even before considering CustomResources defined in CustomResourceDefinitions (CRDs). While Kyverno can generate these CustomResources as well, both these as well as certain default Kubernetes resources may require granting additional privileges to the ClusterRole responsible for the `generate` behavior. To enable Kyverno to generate these other types, edit the ClusterRole typically named `kyverno:generatecontroller` and add or update the rules to cover the resources and verbs needed.

{{% alert title="Note" color="info" %}}
For generating a custom resource using generate policy, it is necessary to set the resource apiVersion i.e `cpol.generate.apiVersion` and kind i.e `cpol.generate.kind`.
When generating a custom resource, it is necessary to set the apiVersion (ex., `spec.generate.apiVersion` and kind (ex., `spec.generate.kind`).
{{% /alert %}}

## Generate a ConfigMap using inline data
Expand Down

0 comments on commit dc7d719

Please sign in to comment.