~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
93 lines · 2.4 KB Raw History
apiVersion: apis.kcp.io/v1alpha1
kind: APIResourceSchema
metadata:
  name: v1alpha1-2.atprotosessions.socialweb.computer
spec:
  group: socialweb.computer
  names:
    kind: AtprotoSession
    listKind: AtprotoSessionList
    plural: atprotosessions
    singular: atprotosession
  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:
              did:
                type: string
              accountRef:
                type: object
                properties:
                  name:
                    type: string
                    maxLength: 253
                required:
                  - name
              pdsRef:
                type: object
                properties:
                  group:
                    type: string
                  kind:
                    type: string
                    maxLength: 63
                  name:
                    type: string
                    maxLength: 253
                  workspace:
                    type: string
                required:
                  - kind
                  - name
              sessionId:
                type: string
            required:
              - did
              - accountRef
              - pdsRef
              - sessionId
          status:
            type: object
            properties:
              observedGeneration:
                type: integer
                format: int64
              active:
                type: boolean
              expiresAt:
                type: string
              revoked:
                type: boolean
              conditions:
                type: array
                items:
                  type: object
                  x-kubernetes-preserve-unknown-fields: true
      additionalPrinterColumns:
        - name: DID
          type: string
          jsonPath: .spec.did
        - name: Active
          type: boolean
          jsonPath: .status.active
        - name: Expires
          type: string
          jsonPath: .status.expiresAt
        - name: Age
          type: date
          jsonPath: .metadata.creationTimestamp