Remote Write Config and Filter operator
[demo.git] / vnfs / DAaaS / microservices / remote-config-operator / deploy / crds / onap.org_prometheusremoteendpoints_crd.yaml
1 apiVersion: apiextensions.k8s.io/v1beta1
2 kind: CustomResourceDefinition
3 metadata:
4   name: prometheusremoteendpoints.onap.org
5 spec:
6   group: onap.org
7   names:
8     kind: PrometheusRemoteEndpoint
9     listKind: PrometheusRemoteEndpointList
10     plural: prometheusremoteendpoints
11     singular: prometheusremoteendpoint
12   scope: Namespaced
13   subresources:
14     status: {}
15   validation:
16     openAPIV3Schema:
17       description: PrometheusRemoteEndpoint is the Schema for the prometheusremoteendpoints
18         API
19       properties:
20         apiVersion:
21           description: 'APIVersion defines the versioned schema of this representation
22             of an object. Servers should convert recognized schemas to the latest
23             internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
24           type: string
25         kind:
26           description: 'Kind is a string value representing the REST resource this
27             object represents. Servers may infer this from the endpoint the client
28             submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
29           type: string
30         metadata:
31           type: object
32         spec:
33           description: PrometheusRemoteEndpointSpec defines the desired state of PrometheusRemoteEndpoint
34           properties:
35             adapterURL:
36               type: string
37             filterSelector:
38               description: A label selector is a label query over a set of resources.
39                 The result of matchLabels and matchExpressions are ANDed. An empty
40                 label selector matches all objects. A null label selector matches
41                 no objects.
42               properties:
43                 matchExpressions:
44                   description: matchExpressions is a list of label selector requirements.
45                     The requirements are ANDed.
46                   items:
47                     description: A label selector requirement is a selector that contains
48                       values, a key, and an operator that relates the key and values.
49                     properties:
50                       key:
51                         description: key is the label key that the selector applies
52                           to.
53                         type: string
54                       operator:
55                         description: operator represents a key's relationship to a
56                           set of values. Valid operators are In, NotIn, Exists and
57                           DoesNotExist.
58                         type: string
59                       values:
60                         description: values is an array of string values. If the operator
61                           is In or NotIn, the values array must be non-empty. If the
62                           operator is Exists or DoesNotExist, the values array must
63                           be empty. This array is replaced during a strategic merge
64                           patch.
65                         items:
66                           type: string
67                         type: array
68                     required:
69                     - key
70                     - operator
71                     type: object
72                   type: array
73                 matchLabels:
74                   additionalProperties:
75                     type: string
76                   description: matchLabels is a map of {key,value} pairs. A single
77                     {key,value} in the matchLabels map is equivalent to an element
78                     of matchExpressions, whose key field is "key", the operator is
79                     "In", and the values array contains only "value". The requirements
80                     are ANDed.
81                   type: object
82               type: object
83             kafkaConfig:
84               type: string
85             queueConfig:
86               description: QueueConfig - defines the prometheus remote write queue
87                 configurations
88               properties:
89                 batchSendDeadline:
90                   type: string
91                 capacity:
92                   type: string
93                 maxBackoff:
94                   type: string
95                 maxRetries:
96                   type: string
97                 maxSamplesPerSend:
98                   type: string
99                 maxShards:
100                   type: string
101                 minBackoff:
102                   type: string
103                 minShards:
104                   type: string
105               type: object
106             remoteTimeout:
107               type: string
108             type:
109               type: string
110           required:
111           - adapterURL
112           - type
113           type: object
114         status:
115           description: PrometheusRemoteEndpointStatus defines the observed state of
116             PrometheusRemoteEndpoint
117           properties:
118             kafkaWriterID:
119               type: string
120             prometheusInstance:
121               description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
122                 of cluster Important: Run "operator-sdk generate k8s" to regenerate
123                 code after modifying this file Add custom validation using kubebuilder
124                 tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
125                 Status can be Error, Enabled'
126               type: string
127             remoteURL:
128               type: string
129             status:
130               type: string
131           required:
132           - status
133           type: object
134       type: object
135   version: v1alpha1
136   versions:
137   - name: v1alpha1
138     served: true
139     storage: true