apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: profiles.tuned.openshift.io
spec:
  group: tuned.openshift.io
  names:
    kind: Profile
    listKind: ProfileList
    plural: profiles
    singular: profile
  preserveUnknownFields: false
  scope: Namespaced
  versions:
  - name: v1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        description: Profile is a specification for a Profile resource
        type: object
        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
          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
          spec:
            type: object
            required:
            - config
            properties:
              config:
                type: object
                required:
                - tunedProfile
                properties:
                  tunedProfile:
                    description: tuned profile to apply
                    type: string
          status:
            description: ProfileStatus is the status for a Profile resource; the status
              is for internal use only and its fields may be changed/removed in the
              future.
            type: object
            properties:
              bootcmdline:
                description: kernel parameters calculated by tuned for the active
                  tuned profile
                type: string
              stalld:
                description: 'deploy stall daemon: https://github.com/bristot/stalld/'
                type: boolean
