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

     1  # Copyright (c) 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: metricsbindings.app.verrazzano.io
    11  spec:
    12    group: app.verrazzano.io
    13    names:
    14      kind: MetricsBinding
    15      listKind: MetricsBindingList
    16      plural: metricsbindings
    17      singular: metricsbinding
    18    scope: Namespaced
    19    versions:
    20    - name: v1alpha1
    21      schema:
    22        openAPIV3Schema:
    23          description: MetricsBinding specifies the metrics binding 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: MetricsBindingSpec specifies the desired state of a metrics
    39                binding.
    40              properties:
    41                metricsTemplate:
    42                  description: Identifies a namespace and name for a metricsTemplate
    43                    resource.
    44                  properties:
    45                    name:
    46                      description: Name of the resource.
    47                      type: string
    48                    namespace:
    49                      description: Namespace of the resource.
    50                      type: string
    51                  required:
    52                  - name
    53                  - namespace
    54                  type: object
    55                prometheusConfigMap:
    56                  description: Identifies a namespace and name for a Prometheus ConfigMap
    57                    resource.
    58                  properties:
    59                    name:
    60                      description: Name of the resource.
    61                      type: string
    62                    namespace:
    63                      description: Namespace of the resource.
    64                      type: string
    65                  required:
    66                  - name
    67                  - namespace
    68                  type: object
    69                prometheusConfigSecret:
    70                  description: Identifies a namespace, name, and key for a secret containing
    71                    the Prometheus configuration.
    72                  properties:
    73                    key:
    74                      description: Key in the secret whose value this object represents.
    75                      type: string
    76                    name:
    77                      description: Name of the secret.
    78                      type: string
    79                    namespace:
    80                      description: Namespace of the secret.
    81                      type: string
    82                  required:
    83                  - key
    84                  - name
    85                  - namespace
    86                  type: object
    87                workload:
    88                  description: Identifies the name and type for a workload.
    89                  properties:
    90                    name:
    91                      description: Name of the resource.
    92                      type: string
    93                    typeMeta:
    94                      description: TypeMeta of the resource.
    95                      properties:
    96                        apiVersion:
    97                          description: 'APIVersion defines the versioned schema of this
    98                            representation of an object. Servers should convert recognized
    99                            schemas to the latest internal value, and may reject unrecognized
   100                            values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
   101                          type: string
   102                        kind:
   103                          description: 'Kind is a string value representing the REST
   104                            resource this object represents. Servers may infer this
   105                            from the endpoint the client submits requests to. Cannot
   106                            be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
   107                          type: string
   108                      type: object
   109                  required:
   110                  - name
   111                  - typeMeta
   112                  type: object
   113              required:
   114              - metricsTemplate
   115              - workload
   116              type: object
   117          required:
   118          - spec
   119          type: object
   120      served: true
   121      storage: true