ProjectRequestLimit for a user group based on label

Solution Unverified - Updated -

Issue

  • Limiting project creation for a user group that has a label.

Environment

  • Red Hat OpenShift Container platform (OpenShift) 3.6
  • An example of the master-config file:

    admissionConfig:
      pluginConfig:
        ProjectRequestLimit:
          configuration:
            apiVersion: v1
            kind: ProjectRequestLimitConfig
            limits:
            - selector:
                level: top-client
            - selector:
                level: normal-client
              maxProjects: 7
            - selector:
                level: internal
              maxProjects: 50
            - maxProjects: 3
    
  • An example of a group definition

    # oc get groups
    NAME                USERS
    OCP-INTERNAL-USERS   jdoe, asmith, kjones, pclark
    
    # oc describe group/OCP-INTERNAL-USERS
    Name:           OCP-INTERNAL-USERS
    Created:        7 days ago
    Labels:         level=internal
    Users:          jdoe
                    asmith
                    kjones
                    pclark
    

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