# self service crd (auto-generated):
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: projects.selfservice.innoq.io
spec:
  group: selfservice.innoq.io
  names:
    kind: Project
    plural: projects
    shortNames:
      - ssp
    singular: project
  scope: Cluster
  versions:
    - additionalPrinterColumns:
        - description: owner of this project
          jsonPath: ".spec.owner"
          name: Owner
          type: string
        - description: "whether the project's namespace is private"
          jsonPath: ".spec.private"
          name: Private
          type: string
        - description: how old this resource is
          jsonPath: ".metadata.creationTimestamp"
          name: Age
          type: date
        - description: current phase of this resource
          jsonPath: ".status.phase"
          name: Phase
          type: string
        - description: current status
          jsonPath: ".status.summary"
          name: Status summary
          type: string
      name: v1
      schema:
        openAPIV3Schema:
          description: "Auto-generated derived type for ProjectSpec via `CustomResource`"
          properties:
            spec:
              description: a self service project that will create a namespace per project with the owner having cluster-admin rights in this namespace
              properties:
                manifestValues:
                  description: a map of values that should be templated into manifests that get created
                  nullable: true
                  type: string
                owners:
                  description: Owner of this project -- this user will have cluster-admin rights within the created namespace it must be the user name of this user
                  items:
                    type: string
                  type: array
              required:
                - owners
              type: object
            status:
              description: Reflects the status of the current self service project
              nullable: true
              properties:
                message:
                  nullable: true
                  type: string
                phase:
                  enum:
                    - Initializing
                    - CreatingNamespace
                    - SettingUpRBACPermissions
                    - ApplyingManifests
                    - FailedDueToError
                    - WaitingForChanges
                  nullable: true
                  type: string
                summary:
                  nullable: true
                  type: string
              type: object
          required:
            - spec
          title: Project
          type: object
      served: true
      storage: true
      subresources:
        status: {}


