Is is possible to use wildcard in Role definition in OpenShift Container Platform 4

Solution Verified - Updated -

Issue

  • We would like to have a ruleset for all child resources of the pods resource inside a clusterrole. To make it easy we would like to use wildcard as shown below but that does not appear to work.

    - apiGroups:
      - '*'
      resources:
      - pods/*
      verbs:
      - '*'
    
  • Is is possible to use wildcard in Role definition in OCP 4

Environment

  • Red Hat OpenShift Container Platform (OCP) 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content