Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-5006

Apply New Project Templates to specific Projects filtered by labels

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Normal
    • None
    • openshift-4.13, openshift-4.14
    • None
    • False
    • None
    • False
    • Not Selected
    • 0
    • 0% 0%

    Description

      1. Proposed title of this feature request

      Apply New Project Templates to specific Projects filtered by labels 

      2. What is the nature and description of the request?

      The purpose of this request is to use Project Request Template feature, to apply the defined template only to "selected" namespaces - which will be filtered by supplying appropriate label.
      
      .e.g.:
      
      Step 1 - Consider the following 2 projects, defined like this:
      
      apiVersion: project.openshift.io/v1
      kind: Project
      metadata:
        name: my-project-1
        labels:
          part-of-eclipse-che: true
      
      
      apiVersion: project.openshift.io/v1
      kind: Project
      metadata:
        name: my-project-2
        labels:
          part-of-eclipse-che: false
      
      Step 2 - Consider the following Project Template:
      
      apiVersion: template.openshift.io/v1
      kind: Template
      metadata:
        creationTimestamp: null
        name: dev-spaces-template
      objects:
       <...>
      
      Step 3 - Consider the following Project Request creation:
      
      apiVersion: config.openshift.io/v1
      kind: Project
      metadata:
        ...
      spec:
        projectRequestTemplate:
          name: dev-spaces-template
          filter:
           labels:
             part-of-eclipse-che: true
      
      With this configuration, I want "dev-spaces-template" to be applied only to "my-project-1" and not to "my-project-2".
      
      Reference: https://docs.openshift.com/container-platform/4.9/applications/projects/configuring-project-creation.html

      3. Why does the customer need this? (List the business requirements here)

      This has to be addressed otherwise this makes the management of Dev Spaces more cumbersome. 

      4. List any affected packages or components.

      New Projects Templates 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            gpereira@redhat.com Gustavo Pereira
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: