# Source: https://raw.githubusercontent.com/arangodb/kube-arangodb/refs/tags/{version}/chart/kube-arangodb/crds/networking-route.yaml
# Version: 1.3.0
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: arangoroutes.networking.arangodb.com
spec:
  group: networking.arangodb.com
  names:
    kind: ArangoRoute
    listKind: ArangoRouteList
    plural: arangoroutes
    singular: arangoroute
  scope: Namespaced
  versions:
    - name: v1alpha1
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      served: true
      storage: false
      additionalPrinterColumns:
        - jsonPath: '.status.conditions[?(@.type=="Ready")].status'
          description: Defines if Route is valid
          name: Ready
          type: string
        - jsonPath: '.status.deployment.name'
          description: ArangoDeployment Name
          name: Deployment
          type: string
        - jsonPath: '.status.target.route.path'
          description: Route Path
          name: Route
          type: string
      subresources:
        status: {}
    - name: v1beta1
      schema:
        openAPIV3Schema:
          type: object
          x-kubernetes-preserve-unknown-fields: true
      served: true
      storage: true
      additionalPrinterColumns:
        - jsonPath: '.status.conditions[?(@.type=="Ready")].status'
          description: Defines if Route is valid
          name: Ready
          type: string
        - jsonPath: '.status.deployment.name'
          description: ArangoDeployment Name
          name: Deployment
          type: string
        - jsonPath: '.status.target.route.path'
          description: Route Path
          name: Route
          type: string
      subresources:
        status: {}
