~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
92 lines · 2.3 KB Raw History
apiVersion: apis.kcp.io/v1alpha1
kind: APIResourceSchema
metadata:
  name: v1alpha1-2.portleases.socialweb.computer
spec:
  group: socialweb.computer
  names:
    kind: PortLease
    listKind: PortLeaseList
    plural: portleases
    singular: portlease
  scope: Cluster
  versions:
    - name: v1alpha1
      served: true
      storage: true
      subresources:
        status: {}
      schema:
        type: object
        properties:
          apiVersion:
            type: string
          kind:
            type: string
          metadata:
            type: object
          spec:
            type: object
            properties:
              clusterRef:
                type: object
                properties:
                  group:
                    type: string
                  kind:
                    type: string
                    maxLength: 63
                  name:
                    type: string
                    maxLength: 253
                  workspace:
                    type: string
                required:
                  - kind
                  - name
              purpose:
                type: string
              port:
                type: integer
                format: int32
            required:
              - clusterRef
              - purpose
              - port
          status:
            type: object
            properties:
              observedGeneration:
                type: integer
                format: int64
              phase:
                type: string
                enum:
                  - Pending
                  - Allocated
                  - Released
              allocatedAt:
                type: string
              holderRef:
                type: string
              conditions:
                type: array
                items:
                  type: object
                  x-kubernetes-preserve-unknown-fields: true
      additionalPrinterColumns:
        - name: Purpose
          type: string
          jsonPath: .spec.purpose
        - name: Port
          type: integer
          jsonPath: .spec.port
        - name: Phase
          type: string
          jsonPath: .status.phase
        - name: Holder
          type: string
          jsonPath: .status.holderRef
        - name: Age
          type: date
          jsonPath: .metadata.creationTimestamp