---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    "helm.sh/resource-policy": keep
  name: compassconnections.compass.kyma-project.io
spec:
  group: compass.kyma-project.io
  names:
    kind: CompassConnection
    listKind: CompassConnectionList
    plural: compassconnections
    singular: compassconnection
  scope: Cluster
  versions:
    - name: v1alpha1
      schema:
        openAPIV3Schema:
          properties:
            apiVersion:
              description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
              type: string
            kind:
              description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
              type: string
            metadata:
              type: object
            spec:
              properties:
                managementInfo:
                  properties:
                    connectorUrl:
                      type: string
                    directorUrl:
                      type: string
                  required:
                    - connectorUrl
                    - directorUrl
                  type: object
                refreshCredentialsNow:
                  type: boolean
                resyncNow:
                  type: boolean
              required:
                - managementInfo
              type: object
            status:
              properties:
                connectionState:
                  type: string
                connectionStatus:
                  description: ConnectionStatus represents status of a connection to
                    Compass
                  properties:
                    certificateStatus:
                      description: CertificateStatus represents the status of the certificate
                      properties:
                        acquired:
                          format: date-time
                          nullable: true
                          type: string
                        notAfter:
                          format: date-time
                          nullable: true
                          type: string
                        notBefore:
                          format: date-time
                          nullable: true
                          type: string
                      type: object
                    error:
                      type: string
                    established:
                      format: date-time
                      nullable: true
                      type: string
                    lastSuccess:
                      format: date-time
                      nullable: true
                      type: string
                    lastSync:
                      format: date-time
                      nullable: true
                      type: string
                    renewed:
                      format: date-time
                      nullable: true
                      type: string
                  required:
                    - certificateStatus
                  type: object
                synchronizationStatus:
                  description: SynchronizationStatus represent the status of Applications
                    synchronization with Compass
                  nullable: true
                  properties:
                    error:
                      type: string
                    lastAttempt:
                      format: date-time
                      nullable: true
                      type: string
                    lastSuccessfulApplication:
                      format: date-time
                      nullable: true
                      type: string
                    lastSuccessfulFetch:
                      format: date-time
                      nullable: true
                      type: string
                  type: object
              required:
                - connectionState
                - connectionStatus
              type: object
          required:
            - spec
          type: object
      served: true
      storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
