apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: gmsacredentialspecs.windows.k8s.io
  annotations:
    "api-approved.kubernetes.io": "https://github.com/kubernetes/enhancements/tree/master/keps/sig-windows/689-windows-gmsa"
spec:
  group: windows.k8s.io
  versions:
  - name: v1alpha1
    served: true
    storage: false
    deprecated: true
    schema:
      openAPIV3Schema:
        type: object
        properties:
          credspec:
            description: GMSA Credential Spec
            type: object
            properties:
              ActiveDirectoryConfig:
                type: object
                properties:
                  GroupManagedServiceAccounts:
                    type: array
                    items:
                      type: object
                      properties:
                        Name:
                          type: string
                        Scope:
                          type: string
                  HostAccountConfig:
                    type: object
                    properties:
                      PluginGUID:
                        type: string
                      PluginInput:
                        type: string
                      PortableCcgVersion:
                        type: string
              CmsPlugins:
                type: array
                items:
                  type: string
              DomainJoinConfig:
                type: object
                properties:
                  DnsName:
                    type: string
                  DnsTreeName:
                    type: string
                  Guid:
                    type: string
                  MachineAccountName:
                    type: string
                  NetBiosName:
                    type: string
                  Sid:
                    type: string
  - name: v1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        type: object
        properties:
          credspec:
            description: GMSA Credential Spec
            type: object
            properties:
              ActiveDirectoryConfig:
                type: object
                properties:
                  GroupManagedServiceAccounts:
                    type: array
                    items:
                      type: object
                      properties:
                        Name:
                          type: string
                        Scope:
                          type: string
                  HostAccountConfig:
                    type: object
                    properties:
                      PluginGUID:
                        type: string
                      PluginInput:
                        type: string
                      PortableCcgVersion:
                        type: string
              CmsPlugins:
                type: array
                items:
                  type: string
              DomainJoinConfig:
                type: object
                properties:
                  DnsName:
                    type: string
                  DnsTreeName:
                    type: string
                  Guid:
                    type: string
                  MachineAccountName:
                    type: string
                  NetBiosName:
                    type: string
                  Sid:
                    type: string
  conversion:
    strategy: None
  names:
    kind: GMSACredentialSpec
    plural: gmsacredentialspecs
  scope: Cluster
