sigs.k8s.io/kueue@v0.6.2/charts/kueue/templates/crd/kueue.x-k8s.io_admissionchecks.yaml (about)

     1  ---
     2  apiVersion: apiextensions.k8s.io/v1
     3  kind: CustomResourceDefinition
     4  metadata:
     5    annotations:
     6      {{- if .Values.enableCertManager }}
     7      cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ include "kueue.fullname" . }}-serving-cert
     8      {{- end }}
     9      controller-gen.kubebuilder.io/version: v0.14.0
    10    name: admissionchecks.kueue.x-k8s.io
    11  spec:
    12    conversion:
    13      strategy: Webhook
    14      webhook:
    15        clientConfig:
    16          service:
    17            name: {{ include "kueue.fullname" . }}-webhook-service
    18            namespace: '{{ .Release.Namespace }}'
    19            path: /convert
    20        conversionReviewVersions:
    21        - v1
    22    group: kueue.x-k8s.io
    23    names:
    24      kind: AdmissionCheck
    25      listKind: AdmissionCheckList
    26      plural: admissionchecks
    27      singular: admissioncheck
    28    scope: Cluster
    29    versions:
    30    - name: v1beta1
    31      schema:
    32        openAPIV3Schema:
    33          description: AdmissionCheck is the Schema for the admissionchecks API
    34          properties:
    35            apiVersion:
    36              description: |-
    37                APIVersion defines the versioned schema of this representation of an object.
    38                Servers should convert recognized schemas to the latest internal value, and
    39                may reject unrecognized values.
    40                More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    41              type: string
    42            kind:
    43              description: |-
    44                Kind is a string value representing the REST resource this object represents.
    45                Servers may infer this from the endpoint the client submits requests to.
    46                Cannot be updated.
    47                In CamelCase.
    48                More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    49              type: string
    50            metadata:
    51              type: object
    52            spec:
    53              description: AdmissionCheckSpec defines the desired state of AdmissionCheck
    54              properties:
    55                controllerName:
    56                  description: |-
    57                    controllerName is name of the controller which will actually perform
    58                    the checks. This is the name with which controller identifies with,
    59                    not necessarily a K8S Pod or Deployment name. Cannot be empty.
    60                  type: string
    61                parameters:
    62                  description: Parameters identifies the resource providing additional
    63                    check parameters.
    64                  properties:
    65                    apiGroup:
    66                      description: ApiGroup is the group for the resource being referenced.
    67                      type: string
    68                    kind:
    69                      description: Kind is the type of the resource being referenced.
    70                      type: string
    71                    name:
    72                      description: Name is the name of the resource being referenced.
    73                      type: string
    74                  required:
    75                  - apiGroup
    76                  - kind
    77                  - name
    78                  type: object
    79                retryDelayMinutes:
    80                  default: 15
    81                  description: |-
    82                    RetryDelayMinutes specifies how long to keep the workload suspended
    83                    after a failed check (after it transitioned to False).
    84                    After that the check state goes to "Unknown".
    85                    The default is 15 min.
    86                  format: int64
    87                  type: integer
    88              required:
    89              - controllerName
    90              type: object
    91            status:
    92              description: AdmissionCheckStatus defines the observed state of AdmissionCheck
    93              properties:
    94                conditions:
    95                  description: |-
    96                    conditions hold the latest available observations of the AdmissionCheck
    97                    current state.
    98                  items:
    99                    description: "Condition contains details for one aspect of the current
   100                      state of this API Resource.\n---\nThis struct is intended for
   101                      direct use as an array at the field path .status.conditions.  For
   102                      example,\n\n\n\ttype FooStatus struct{\n\t    // Represents the
   103                      observations of a foo's current state.\n\t    // Known .status.conditions.type
   104                      are: \"Available\", \"Progressing\", and \"Degraded\"\n\t    //
   105                      +patchMergeKey=type\n\t    // +patchStrategy=merge\n\t    // +listType=map\n\t
   106                      \   // +listMapKey=type\n\t    Conditions []metav1.Condition `json:\"conditions,omitempty\"
   107                      patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
   108                      \   // other fields\n\t}"
   109                    properties:
   110                      lastTransitionTime:
   111                        description: |-
   112                          lastTransitionTime is the last time the condition transitioned from one status to another.
   113                          This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
   114                        format: date-time
   115                        type: string
   116                      message:
   117                        description: |-
   118                          message is a human readable message indicating details about the transition.
   119                          This may be an empty string.
   120                        maxLength: 32768
   121                        type: string
   122                      observedGeneration:
   123                        description: |-
   124                          observedGeneration represents the .metadata.generation that the condition was set based upon.
   125                          For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
   126                          with respect to the current state of the instance.
   127                        format: int64
   128                        minimum: 0
   129                        type: integer
   130                      reason:
   131                        description: |-
   132                          reason contains a programmatic identifier indicating the reason for the condition's last transition.
   133                          Producers of specific condition types may define expected values and meanings for this field,
   134                          and whether the values are considered a guaranteed API.
   135                          The value should be a CamelCase string.
   136                          This field may not be empty.
   137                        maxLength: 1024
   138                        minLength: 1
   139                        pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
   140                        type: string
   141                      status:
   142                        description: status of the condition, one of True, False, Unknown.
   143                        enum:
   144                        - "True"
   145                        - "False"
   146                        - Unknown
   147                        type: string
   148                      type:
   149                        description: |-
   150                          type of condition in CamelCase or in foo.example.com/CamelCase.
   151                          ---
   152                          Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
   153                          useful (see .node.status.conditions), the ability to deconflict is important.
   154                          The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
   155                        maxLength: 316
   156                        pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
   157                        type: string
   158                    required:
   159                    - lastTransitionTime
   160                    - message
   161                    - reason
   162                    - status
   163                    - type
   164                    type: object
   165                  type: array
   166                  x-kubernetes-list-map-keys:
   167                  - type
   168                  x-kubernetes-list-type: map
   169              type: object
   170          type: object
   171      served: true
   172      storage: true
   173      subresources:
   174        status: {}