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 resourceNames qualifier to ClusterRolePolicyRule #2413

Open
2 tasks
Sahand1993 opened this issue Feb 28, 2025 · 0 comments
Open
2 tasks

Add resourceNames qualifier to ClusterRolePolicyRule #2413

Sahand1993 opened this issue Feb 28, 2025 · 0 comments
Labels
feature-request New/Enhanced functionality wanted needs-triage Priority and effort undetermined yet

Comments

@Sahand1993
Copy link

Description of the feature or enhancement:

Just like org.cdk8s.plus29.k8s.PolicyRule allows you to provide resourceNames as a qualifier for the privileges, so should org.cdk8s.plus29.ClusterRolePolicyRule.

Use Case:

Needed to achieve the equivalent of:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
role: myRole
name: myRole
rules:

  • apiGroups:
    • ""
      resourceNames:
    • myConfigMap
      resources:
    • configmaps
      verbs:
    • get
    • list
    • watch

Proposed Solution:

Not read up on the repo enough to do that.

Other:

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@Sahand1993 Sahand1993 added feature-request New/Enhanced functionality wanted needs-triage Priority and effort undetermined yet labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New/Enhanced functionality wanted needs-triage Priority and effort undetermined yet
Projects
None yet
Development

No branches or pull requests

1 participant