apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: passwordlists.passwordstate.operator
spec:
  group: passwordstate.operator
  scope: Namespaced
  names:
    plural: passwordlists
    singular: passwordlist
    kind: PasswordList
  versions:
    - name: v1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          type: object
          description: "A request for a password list from Passwordstate"
          properties:
            spec:
              type: object
              properties:
                passwordListId:
                  type: string
                secretName:
                  type: string
                autoRestartDeploymentName:
                  type: string
              required: ["passwordListId", "secretName"]