# Source: https://raw.githubusercontent.com/arangodb/kube-arangodb/refs/tags/{version}/chart/kube-arangodb/crds/database-deployment.yaml
# Version: 1.3.0
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: arangodeployments.database.arangodb.com
spec:
  group: database.arangodb.com
  names:
    kind: ArangoDeployment
    listKind: ArangoDeploymentList
    plural: arangodeployments
    shortNames:
      - arangodb
      - arango
    singular: arangodeployment
  scope: Namespaced
  versions:
    - name: v1
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      served: true
      storage: true
      additionalPrinterColumns:
        - jsonPath: '.status.conditions[?(@.type=="UpToDate")].status'
          description: Defines if ArangoDeployment is UpToDate
          name: Ready
          type: string
        - jsonPath: '.status.accepted-spec.mode'
          description: ArangoDeployment Mode
          name: Mode
          type: string
    - name: v1alpha
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      served: false
      storage: false
      additionalPrinterColumns:
        - jsonPath: '.status.conditions[?(@.type=="UpToDate")].status'
          description: Defines if ArangoDeployment is UpToDate
          name: Ready
          type: string
        - jsonPath: '.status.accepted-spec.mode'
          description: ArangoDeployment Mode
          name: Mode
          type: string
    - name: v2alpha1
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      served: true
      storage: false
      additionalPrinterColumns:
        - jsonPath: '.status.conditions[?(@.type=="UpToDate")].status'
          description: Defines if ArangoDeployment is UpToDate
          name: Ready
          type: string
        - jsonPath: '.status.accepted-spec.mode'
          description: ArangoDeployment Mode
          name: Mode
          type: string
      subresources:
        status: {}
