Bug 1746009 - Limit number of self-provisioned projects per user via CR
Summary: Limit number of self-provisioned projects per user via CR
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-apiserver
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.3.0
Assignee: Marc Curry
QA Contact: Xingxing Xia
URL:
Whiteboard: rfe
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-27 12:56 UTC by Matous Jobanek
Modified: 2019-12-24 11:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-29 13:10:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Matous Jobanek 2019-08-27 12:56:58 UTC
Description of problem:
In OpenShift 3, there was a possibility to limit number of self-provisioned projects per user via configuration in master-config.yaml file. In OpenShift 4, there is no way to create one or more level of limits and assign the limits via labels (in the same way as was done in OS 3).
Could you please add the support to OS 4 in a way that would be configurable via CR?

Version-Release number of selected component (if applicable):
4.x

Actual results:
There is no way to limit number of self-provisioned projects per user

Expected results:
There is a CR that takes a list of limits associated with labels - for example:

spec:
  limits:
    - limit: 0
    - selector: basic
      limit: 1
    - selector: advanced
      limit: 5
    - selector: admin

The limit contains two parameters: selector and limit. Selector specifies a label that should be used for applying the limit and the limit parameter sets a number of max self-provisioned namespaces. If the selector param is missing, then the limit is used as the default one for all users. If the limit param is missing, then the users with the label should be able to have an unlimited number of self-provisioned namespaces.


Additional info:
OpenShift 3 way: https://docs.openshift.com/container-platform/3.11/admin_guide/managing_projects.html#limit-projects-per-user


Note You need to log in before you can comment on or make changes to this bug.