---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: configmappropagations.examples.metacontroller.io
spec:
  group: examples.metacontroller.io
  scope: Cluster
  names:
    plural: configmappropagations
    singular: configmappropagation
    kind: ConfigMapPropagation
    shortNames: ["cp"]
  versions:
  - name: v1alpha1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        properties:
          spec:
            type: object
            properties:
              sourceName:
                description: 'Name of configmap to propagate'
                type: string
              sourceNamespace:
                description: 'Namespace in which configmap to propagate is located'
                type: string
              targetNamespaces:
                type: array
                items:
                  type: string
            required:
            - sourceName
            - sourceNamespace
            - targetNamespaces
          status:
            type: object
            properties:
              expected_copies:
                type: integer
              actual_copies:
                type: integer
              observedGeneration:
                type: integer
        required:
        - spec
    subresources:
      status: {}