Skip to content

improve tests for generate-tenant-resources-admission ClusterPolicy #6130

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

filariow
Copy link
Member

@filariow filariow commented Apr 14, 2025

requires

This PR adds some content to the ClusterRole appstudio-pipeline-runner in chainsaw tests to make it more adherent to the real use case.

This is to make sure the policy's manifests are providing kyverno with the permission required to create the RoleBinding, i.e. the same permission the ClusterRole in the RoleBinding will provide to the assignee.

For this purpose permissions on horizontalpodautoscaler are a good fit as they aren't something shared globally and -if missed- an error would be raised.

Signed-off-by: Francesco Ilario <[email protected]>
add some content to appstudio-pipelines-runner ClusterRole
in chainsaw's tests to make sure Kyverno is provided with
required permissions.

Signed-off-by: Francesco Ilario <[email protected]>
@openshift-ci openshift-ci bot requested review from gbenhaim and sadlerap April 14, 2025 13:11
Copy link
Contributor

@sadlerap sadlerap left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Apr 14, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: filariow, sadlerap
Once this PR has been reviewed and has the lgtm label, please assign lcarva for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants