apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: mongodbatlasinstances.dbaas.redhat.com
spec:
  group: dbaas.redhat.com
  names:
    kind: MongoDBAtlasInstance
    listKind: MongoDBAtlasInstanceList
    plural: mongodbatlasinstances
    singular: mongodbatlasinstance
  scope: Namespaced
  versions:
    - name: v1alpha1
      schema:
        openAPIV3Schema:
          properties:
            apiVersion:
              type: string
            kind:
              type: string
            metadata:
              type: object
            spec:
              properties:
                cloudProvider:
                  enum:
                    - aws
                    - AWS
                    - gcp
                    - GCP
                    - azure
                    - AZURE
                  type: string
                cloudRegion:
                  type: string
                inventoryRef:
                  properties:
                    name:
                      type: string
                    namespace:
                      type: string
                  type: object
                name:
                  type: string
                otherInstanceParams:
                  additionalProperties:
                    type: string
                  type: object
              required:
                - cloudProvider
                - cloudRegion
                - inventoryRef
                - otherInstanceParams
              type: object
            status:
              properties:
                conditions:
                  items:
                    properties:
                      lastTransitionTime:
                        format: date-time
                        type: string
                      message:
                        maxLength: 32768
                        type: string
                      observedGeneration:
                        format: int64
                        minimum: 0
                        type: integer
                      reason:
                        maxLength: 1024
                        minLength: 1
                        pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
                        type: string
                      status:
                        enum:
                          - "True"
                          - "False"
                          - Unknown
                        type: string
                      type:
                        maxLength: 316
                        pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
                        type: string
                    required:
                      - lastTransitionTime
                      - message
                      - reason
                      - status
                      - type
                    type: object
                  type: array
                instanceID:
                  type: string
                instanceInfo:
                  additionalProperties:
                    type: string
                  type: object
                name:
                  type: string
                phase:
                  type: string
              required:
                - instanceID
                - phase
              type: object
          type: object
      served: true
      storage: true
      subresources:
        status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
