# Source: https://raw.githubusercontent.com/arangodb/kube-arangodb/refs/tags/{version}/chart/kube-arangodb/crds/platform-chart.yaml
# Version: 1.3.0
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: arangoplatformcharts.platform.arangodb.com
spec:
  group: platform.arangodb.com
  names:
    kind: ArangoPlatformChart
    listKind: ArangoPlatformChartList
    plural: arangoplatformcharts
    singular: arangoplatformchart
  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 Chart is valid
          name: Ready
          type: string
        - jsonPath: .status.info.details.name
          description: Defines the name of Chart
          name: ChartName
          type: string
        - jsonPath: .status.info.details.version
          description: Defines the version of Chart
          name: ChartVersion
          type: string
        - jsonPath: .status.info.checksum
          description: Defines the checksum of Chart
          name: ChartChecksum
          type: string
          priority: 1
      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 Chart is valid
          name: Ready
          type: string
        - jsonPath: .status.info.details.name
          description: Defines the name of Chart
          name: ChartName
          type: string
        - jsonPath: .status.info.details.version
          description: Defines the version of Chart
          name: ChartVersion
          type: string
        - jsonPath: .status.info.checksum
          description: Defines the checksum of Chart
          name: ChartChecksum
          type: string
          priority: 1
      subresources:
        status: {}
