Skip to content

feat: add generating policy downstream ownership - #131

Open
ShreyanshK1103 wants to merge 1 commit into
kyverno:mainfrom
ShreyanshK1103:feat/generating-policy-downstream-ownership
Open

ShreyanshK1103 wants to merge 1 commit into
kyverno:mainfrom
ShreyanshK1103:feat/generating-policy-downstream-ownership

Conversation

@ShreyanshK1103

@ShreyanshK1103 ShreyanshK1103 commented Oct 23, 2026 •

Copy link
Copy Markdown

Explanation

This PR adds a new downstreamOwnership configuration to GeneratingPolicy evaluation. It allows users to choose whether generated downstream resources are managed by the specific trigger that created them or by any matching trigger belonging to the same policy. The default behavior remains Trigger to preserve existing behavior.

Related issue

Related to kyverno/kyverno#18119

Proposed Changes

  • Add the DownstreamOwnership type with the following supported values:

  • Trigger — the current behavior, where a downstream resource is managed only by the trigger that created it.

  • Policy — allows matching triggers from the same policy to manage a shared downstream resource.

  • Add the downstreamOwnership field to GeneratingPolicyEvaluationConfiguration.

  • Set the default value to Trigger.

  • Add CRD validation restricting the value to Trigger or Policy.

  • Regenerate the affected CRDs and API documentation.

The API addition is intended to provide the configuration required for GeneratingPolicy to support shared downstream resources, matching the behavior available with legacy ClusterPolicy generate.

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.

Further Comments

The Trigger default preserves the existing ownership semantics, while Policy provides an explicit opt-in for shared downstream resources. The implementation of the ownership behavior will be handled in the Kyverno repository.

Signed-off-by: ShreyanshK1103 <shreyanskaushal1103@gmail.com>
@ShreyanshK1103
ShreyanshK1103 force-pushed the feat/generating-policy-downstream-ownership branch from 3f7f460 to d83ddbf Compare October 23, 2026 16:44

This branch has not been deployed

No deployments
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.

1 participant