# Source: https://raw.githubusercontent.com/arangodb/kube-arangodb/refs/tags/{version}/chart/kube-arangodb/crds/database-member.yaml
# Version: 1.3.0
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: arangomembers.database.arangodb.com
spec:
  group: database.arangodb.com
  names:
    kind: ArangoMember
    listKind: ArangoMemberList
    plural: arangomembers
    shortNames:
      - arangomembers
    singular: arangomember
  scope: Namespaced
  versions:
    - name: v1
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      served: true
      storage: true
      additionalPrinterColumns:
        - jsonPath: '.status.conditions[?(@.type=="Ready")].status'
          description: Defines if Member is ready
          name: Ready
          type: string
        - jsonPath: '.status.conditions[?(@.type=="PendingRestart")].status'
          description: Defines if Member is pending restart
          name: PendingRestart
          priority: 1
          type: string
      subresources:
        status: {}
    - name: v2alpha1
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      served: true
      storage: false
      additionalPrinterColumns:
        - jsonPath: '.status.conditions[?(@.type=="Ready")].status'
          description: Defines if Member is ready
          name: Ready
          type: string
        - jsonPath: '.status.conditions[?(@.type=="PendingRestart")].status'
          description: Defines if Member is pending restart
          name: PendingRestart
          priority: 1
          type: string
      subresources:
        status: {}
