|
| 1 | +--- |
| 2 | +apiVersion: apiextensions.k8s.io/v1 |
| 3 | +kind: CustomResourceDefinition |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + controller-gen.kubebuilder.io/version: v0.20.0 |
| 7 | + name: servicemonitors. |
| 8 | +spec: |
| 9 | + group: "" |
| 10 | + names: |
| 11 | + kind: ServiceMonitor |
| 12 | + listKind: ServiceMonitorList |
| 13 | + plural: servicemonitors |
| 14 | + singular: servicemonitor |
| 15 | + scope: Namespaced |
| 16 | + versions: |
| 17 | + - name: "" |
| 18 | + schema: |
| 19 | + openAPIV3Schema: |
| 20 | + description: |- |
| 21 | + ServiceMonitor is a minimal representation of monitoring.coreos.com/v1 ServiceMonitor. |
| 22 | + We define our own struct to avoid the heavy prometheus-operator dependency. |
| 23 | + In production, convert this to the actual CRD type when applying to Kubernetes. |
| 24 | + properties: |
| 25 | + apiVersion: |
| 26 | + description: |- |
| 27 | + APIVersion defines the versioned schema of this representation of an object. |
| 28 | + Servers should convert recognized schemas to the latest internal value, and |
| 29 | + may reject unrecognized values. |
| 30 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 31 | + type: string |
| 32 | + kind: |
| 33 | + description: |- |
| 34 | + Kind is a string value representing the REST resource this object represents. |
| 35 | + Servers may infer this from the endpoint the client submits requests to. |
| 36 | + Cannot be updated. |
| 37 | + In CamelCase. |
| 38 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 39 | + type: string |
| 40 | + metadata: |
| 41 | + type: object |
| 42 | + spec: |
| 43 | + description: ServiceMonitorSpec defines what the ServiceMonitor scrapes. |
| 44 | + properties: |
| 45 | + endpoints: |
| 46 | + items: |
| 47 | + description: Endpoint describes a single scrape endpoint. |
| 48 | + properties: |
| 49 | + interval: |
| 50 | + type: string |
| 51 | + path: |
| 52 | + type: string |
| 53 | + port: |
| 54 | + type: string |
| 55 | + scrapeTimeout: |
| 56 | + type: string |
| 57 | + required: |
| 58 | + - port |
| 59 | + type: object |
| 60 | + type: array |
| 61 | + selector: |
| 62 | + description: |- |
| 63 | + A label selector is a label query over a set of resources. The result of matchLabels and |
| 64 | + matchExpressions are ANDed. An empty label selector matches all objects. A null |
| 65 | + label selector matches no objects. |
| 66 | + properties: |
| 67 | + matchExpressions: |
| 68 | + description: matchExpressions is a list of label selector requirements. |
| 69 | + The requirements are ANDed. |
| 70 | + items: |
| 71 | + description: |- |
| 72 | + A label selector requirement is a selector that contains values, a key, and an operator that |
| 73 | + relates the key and values. |
| 74 | + properties: |
| 75 | + key: |
| 76 | + description: key is the label key that the selector applies |
| 77 | + to. |
| 78 | + type: string |
| 79 | + operator: |
| 80 | + description: |- |
| 81 | + operator represents a key's relationship to a set of values. |
| 82 | + Valid operators are In, NotIn, Exists and DoesNotExist. |
| 83 | + type: string |
| 84 | + values: |
| 85 | + description: |- |
| 86 | + values is an array of string values. If the operator is In or NotIn, |
| 87 | + the values array must be non-empty. If the operator is Exists or DoesNotExist, |
| 88 | + the values array must be empty. This array is replaced during a strategic |
| 89 | + merge patch. |
| 90 | + items: |
| 91 | + type: string |
| 92 | + type: array |
| 93 | + x-kubernetes-list-type: atomic |
| 94 | + required: |
| 95 | + - key |
| 96 | + - operator |
| 97 | + type: object |
| 98 | + type: array |
| 99 | + x-kubernetes-list-type: atomic |
| 100 | + matchLabels: |
| 101 | + additionalProperties: |
| 102 | + type: string |
| 103 | + description: |- |
| 104 | + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels |
| 105 | + map is equivalent to an element of matchExpressions, whose key field is "key", the |
| 106 | + operator is "In", and the values array contains only "value". The requirements are ANDed. |
| 107 | + type: object |
| 108 | + type: object |
| 109 | + x-kubernetes-map-type: atomic |
| 110 | + required: |
| 111 | + - endpoints |
| 112 | + - selector |
| 113 | + type: object |
| 114 | + required: |
| 115 | + - spec |
| 116 | + type: object |
| 117 | + served: true |
| 118 | + storage: true |
0 commit comments