apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: profiles.compliance.openshift.io
spec:
  group: compliance.openshift.io
  names:
    kind: Profile
    listKind: ProfileList
    plural: profiles
    shortNames:
    - profs
    - prof
    singular: profile
  scope: Namespaced
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: Profile is the Schema for the profiles API
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          description:
            type: string
          id:
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          rules:
            items:
              description: ProfileRule defines the name of a specific rule in the
                profile
              type: string
            nullable: true
            type: array
            x-kubernetes-list-type: atomic
          title:
            type: string
          values:
            items:
              description: ProfileValue defines a value for a setting in the profile
              type: string
            nullable: true
            type: array
            x-kubernetes-list-type: atomic
        required:
        - description
        - id
        - title
        type: object
    served: true
    storage: true
