apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: containerdeployments.app.container.mom
spec:
  group: app.container.mom
  versions:
    - name: v1alpha1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          type: object
          properties:
            spec:
              type: object
              properties:
                name:
                  type: string
                source:
                  type: object
                  properties:
                    type:
                      type: string
                    url:
                      type: string
                    credentials:
                      type: object
                      properties:
                        username:
                          type: string
                        password:
                          type: string
                resources:
                  type: object
                  properties:
                    cpu:
                      type: string
                    memory:
                      type: string
                regions:
                  type: array
                  items:
                    type: string
                domain:
                  type: object
                  properties:
                    containerMomSubdomain:
                      type: string
                billing:
                  type: object
                  properties:
                    customerID:
                      type: string
                    plan:
                      type: string
  scope: Namespaced
  names:
    plural: containerdeployments
    singular: containerdeployment
    kind: ContainerDeployment
    shortNames:
    - cdep
