github.com/verrazzano/verrazzano@v1.7.0/platform-operator/helm_config/charts/verrazzano-application-operator/crds/app.verrazzano.io_metricstemplates.yaml (about)

     1  # Copyright (c) 2021, 2022, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  ---
     4  apiVersion: apiextensions.k8s.io/v1
     5  kind: CustomResourceDefinition
     6  metadata:
     7    annotations:
     8      controller-gen.kubebuilder.io/version: v0.9.2
     9    creationTimestamp: null
    10    name: metricstemplates.app.verrazzano.io
    11  spec:
    12    group: app.verrazzano.io
    13    names:
    14      kind: MetricsTemplate
    15      listKind: MetricsTemplateList
    16      plural: metricstemplates
    17      singular: metricstemplate
    18    scope: Namespaced
    19    versions:
    20    - name: v1alpha1
    21      schema:
    22        openAPIV3Schema:
    23          description: MetricsTemplate specifies the metrics template API.
    24          properties:
    25            apiVersion:
    26              description: 'APIVersion defines the versioned schema of this representation
    27                of an object. Servers should convert recognized schemas to the latest
    28                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
    32                object represents. Servers may infer this from the endpoint the client
    33                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    34              type: string
    35            metadata:
    36              type: object
    37            spec:
    38              description: MetricsTemplateSpec specifies the desired state of a metrics
    39                template.
    40              properties:
    41                prometheusConfig:
    42                  description: Prometheus configuration details.
    43                  properties:
    44                    scrapeConfigTemplate:
    45                      description: Scrape configuration template to be added to the
    46                        Prometheus configuration.
    47                      type: string
    48                    targetConfigMap:
    49                      description: Identity of the ConfigMap to be updated with the
    50                        scrape configuration specified in `scrapeConfigTemplate`.
    51                      properties:
    52                        name:
    53                          description: Name of the ConfigMap to be updated with the
    54                            scrape target configuration.
    55                          type: string
    56                        namespace:
    57                          description: Namespace of the ConfigMap to be updated with
    58                            the scrape target configuration.
    59                          type: string
    60                      required:
    61                      - name
    62                      - namespace
    63                      type: object
    64                  required:
    65                  - scrapeConfigTemplate
    66                  - targetConfigMap
    67                  type: object
    68                workloadSelector:
    69                  description: Selector for target workloads.
    70                  properties:
    71                    apiGroups:
    72                      description: Scopes the template to given API Groups.
    73                      items:
    74                        type: string
    75                      type: array
    76                    apiVersions:
    77                      description: Scopes the template to given API Versions.
    78                      items:
    79                        type: string
    80                      type: array
    81                    namespaceSelector:
    82                      description: Scopes the template to a namespace.
    83                      properties:
    84                        matchExpressions:
    85                          description: matchExpressions is a list of label selector
    86                            requirements. The requirements are ANDed.
    87                          items:
    88                            description: A label selector requirement is a selector
    89                              that contains values, a key, and an operator that relates
    90                              the key and values.
    91                            properties:
    92                              key:
    93                                description: key is the label key that the selector
    94                                  applies to.
    95                                type: string
    96                              operator:
    97                                description: operator represents a key's relationship
    98                                  to a set of values. Valid operators are In, NotIn,
    99                                  Exists and DoesNotExist.
   100                                type: string
   101                              values:
   102                                description: values is an array of string values. If
   103                                  the operator is In or NotIn, the values array must
   104                                  be non-empty. If the operator is Exists or DoesNotExist,
   105                                  the values array must be empty. This array is replaced
   106                                  during a strategic merge patch.
   107                                items:
   108                                  type: string
   109                                type: array
   110                            required:
   111                            - key
   112                            - operator
   113                            type: object
   114                          type: array
   115                        matchLabels:
   116                          additionalProperties:
   117                            type: string
   118                          description: matchLabels is a map of {key,value} pairs. A
   119                            single {key,value} in the matchLabels map is equivalent
   120                            to an element of matchExpressions, whose key field is "key",
   121                            the operator is "In", and the values array contains only
   122                            "value". The requirements are ANDed.
   123                          type: object
   124                      type: object
   125                      x-kubernetes-map-type: atomic
   126                    objectSelector:
   127                      description: Scopes the template to a specifically-labelled object
   128                        instance.
   129                      properties:
   130                        matchExpressions:
   131                          description: matchExpressions is a list of label selector
   132                            requirements. The requirements are ANDed.
   133                          items:
   134                            description: A label selector requirement is a selector
   135                              that contains values, a key, and an operator that relates
   136                              the key and values.
   137                            properties:
   138                              key:
   139                                description: key is the label key that the selector
   140                                  applies to.
   141                                type: string
   142                              operator:
   143                                description: operator represents a key's relationship
   144                                  to a set of values. Valid operators are In, NotIn,
   145                                  Exists and DoesNotExist.
   146                                type: string
   147                              values:
   148                                description: values is an array of string values. If
   149                                  the operator is In or NotIn, the values array must
   150                                  be non-empty. If the operator is Exists or DoesNotExist,
   151                                  the values array must be empty. This array is replaced
   152                                  during a strategic merge patch.
   153                                items:
   154                                  type: string
   155                                type: array
   156                            required:
   157                            - key
   158                            - operator
   159                            type: object
   160                          type: array
   161                        matchLabels:
   162                          additionalProperties:
   163                            type: string
   164                          description: matchLabels is a map of {key,value} pairs. A
   165                            single {key,value} in the matchLabels map is equivalent
   166                            to an element of matchExpressions, whose key field is "key",
   167                            the operator is "In", and the values array contains only
   168                            "value". The requirements are ANDed.
   169                          type: object
   170                      type: object
   171                      x-kubernetes-map-type: atomic
   172                    resources:
   173                      description: Scopes the template to given API Resources.
   174                      items:
   175                        type: string
   176                      type: array
   177                  type: object
   178              type: object
   179          required:
   180          - spec
   181          type: object
   182      served: true
   183      storage: true