k8c.io/api/v3@v3.0.0-20230904060738-b0a93889c0b6/crd/enterprise/kcp/ee.kubermatic.k8c.io_constrainttemplates.yaml (about)

     1  # This file has been generated by hack/update-codegen.sh, DO NOT EDIT.
     2  
     3  apiVersion: apiextensions.k8s.io/v1
     4  kind: CustomResourceDefinition
     5  metadata:
     6    annotations:
     7      controller-gen.kubebuilder.io/version: v0.12.0
     8    name: constrainttemplates.ee.kubermatic.k8c.io
     9  spec:
    10    group: ee.kubermatic.k8c.io
    11    names:
    12      kind: ConstraintTemplate
    13      listKind: ConstraintTemplateList
    14      plural: constrainttemplates
    15      singular: constrainttemplate
    16    scope: Cluster
    17    versions:
    18      - additionalPrinterColumns:
    19          - jsonPath: .metadata.creationTimestamp
    20            name: Age
    21            type: date
    22        name: v1
    23        schema:
    24          openAPIV3Schema:
    25            description: ConstraintTemplate is the object representing a kubermatic wrapper for a gatekeeper constraint template.
    26            properties:
    27              apiVersion:
    28                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'
    29                type: string
    30              kind:
    31                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'
    32                type: string
    33              metadata:
    34                type: object
    35              spec:
    36                description: ConstraintTemplateSpec is the object representing the gatekeeper constraint template spec and kubermatic related spec.
    37                properties:
    38                  crd:
    39                    properties:
    40                      spec:
    41                        properties:
    42                          names:
    43                            properties:
    44                              kind:
    45                                type: string
    46                              shortNames:
    47                                items:
    48                                  type: string
    49                                type: array
    50                            type: object
    51                          validation:
    52                            default:
    53                              legacySchema: false
    54                            properties:
    55                              legacySchema:
    56                                default: false
    57                                type: boolean
    58                              openAPIV3Schema:
    59                                type: object
    60                                x-kubernetes-preserve-unknown-fields: true
    61                            type: object
    62                        type: object
    63                    type: object
    64                  selector:
    65                    description: ConstraintTemplateSelector is the object holding the cluster selection filters.
    66                    properties:
    67                      labelSelector:
    68                        description: LabelSelector selects the Clusters to which the Constraint Template applies based on their labels
    69                        properties:
    70                          matchExpressions:
    71                            description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
    72                            items:
    73                              description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
    74                              properties:
    75                                key:
    76                                  description: key is the label key that the selector applies to.
    77                                  type: string
    78                                operator:
    79                                  description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
    80                                  type: string
    81                                values:
    82                                  description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
    83                                  items:
    84                                    type: string
    85                                  type: array
    86                              required:
    87                                - key
    88                                - operator
    89                              type: object
    90                            type: array
    91                          matchLabels:
    92                            additionalProperties:
    93                              type: string
    94                            description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
    95                            type: object
    96                        type: object
    97                        x-kubernetes-map-type: atomic
    98                      providers:
    99                        description: Providers is a list of cloud providers to which the Constraint Template applies to. Empty means all providers are selected.
   100                        items:
   101                          description: CloudProvider defines the cloud provider where the a cluster's nodes are running. Note that these constants may match the machine-controller's constant, but don't have to. Use the functions in the helper package to translate between the two.
   102                          enum:
   103                            - alibaba
   104                            - anexia
   105                            - aws
   106                            - azure
   107                            - bringyourown
   108                            - digitalocean
   109                            - gcp
   110                            - hetzner
   111                            - kubevirt
   112                            - nutanix
   113                            - openstack
   114                            - packet
   115                            - vmwareclouddirector
   116                            - vsphere
   117                          type: string
   118                        type: array
   119                    type: object
   120                  targets:
   121                    items:
   122                      properties:
   123                        libs:
   124                          items:
   125                            type: string
   126                          type: array
   127                        rego:
   128                          type: string
   129                        target:
   130                          type: string
   131                      type: object
   132                    type: array
   133                type: object
   134            type: object
   135        served: true
   136        storage: true
   137        subresources: {}