aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/microservices/remote-config-operator/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/microservices/remote-config-operator/deploy')
-rw-r--r--vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_prometheusremoteendpoints_crd.yaml22
-rw-r--r--vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_remotefilteractions_crd.yaml1
-rw-r--r--vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_prometheusremoteendpoint_cr.yaml30
-rw-r--r--vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_remotefilteraction_cr.yaml11
-rw-r--r--vnfs/DAaaS/microservices/remote-config-operator/deploy/operator.yaml2
-rw-r--r--vnfs/DAaaS/microservices/remote-config-operator/deploy/role.yaml2
-rw-r--r--vnfs/DAaaS/microservices/remote-config-operator/deploy/role_binding.yaml5
7 files changed, 26 insertions, 47 deletions
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_prometheusremoteendpoints_crd.yaml b/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_prometheusremoteendpoints_crd.yaml
index 2903563c..84590a05 100644
--- a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_prometheusremoteendpoints_crd.yaml
+++ b/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_prometheusremoteendpoints_crd.yaml
@@ -32,7 +32,7 @@ spec:
spec:
description: PrometheusRemoteEndpointSpec defines the desired state of PrometheusRemoteEndpoint
properties:
- adapterUrl:
+ adapterURL:
type: string
filterSelector:
description: A label selector is a label query over a set of resources.
@@ -83,6 +83,8 @@ spec:
kafkaConfig:
type: string
queueConfig:
+ description: QueueConfig - defines the prometheus remote write queue
+ configurations
properties:
batchSendDeadline:
type: string
@@ -106,12 +108,28 @@ spec:
type:
type: string
required:
- - adapterUrl
+ - adapterURL
- type
type: object
status:
description: PrometheusRemoteEndpointStatus defines the observed state of
PrometheusRemoteEndpoint
+ properties:
+ kafkaWriterID:
+ type: string
+ prometheusInstance:
+ description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
+ of cluster Important: Run "operator-sdk generate k8s" to regenerate
+ code after modifying this file Add custom validation using kubebuilder
+ tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
+ Status can be Error, Enabled'
+ type: string
+ remoteURL:
+ type: string
+ status:
+ type: string
+ required:
+ - status
type: object
type: object
version: v1alpha1
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_remotefilteractions_crd.yaml b/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_remotefilteractions_crd.yaml
index 0f1d42e3..95839ff3 100644
--- a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_remotefilteractions_crd.yaml
+++ b/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_remotefilteractions_crd.yaml
@@ -38,6 +38,7 @@ spec:
replacement:
type: string
sourceLabels:
+ description: SourceLabels are the labels of the each metric
items:
type: string
type: array
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_prometheusremoteendpoint_cr.yaml b/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_prometheusremoteendpoint_cr.yaml
deleted file mode 100644
index 078bb93c..00000000
--- a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_prometheusremoteendpoint_cr.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-apiVersion: onap.org/v1alpha1
-kind: PrometheusRemoteEndpoint
-metadata:
- name: remoteendpoint-kafka1
- labels:
- app: cp-prometheus-1​
-spec:
- adapterUrl: "{{ .Values.kafkaAdapter.url }}"
- filterSelector:
- remote: kafka1​
- type: "kafka"
- kafkaConfig:
- brokerUrl: "{{ .Values.kafka.brokerUrl }}"
- group: "{{ .Values.kafka.group }}"
- topic: "{{ .Values.kafka.topic }}"
-
----
-
-apiVersion: onap.org/v1alpha1​
-kind: PrometheusRemoteEndpoint​
-Metadata:
- name: relabelconfig-m3db1​
- labels:
- app: cp-prometheus-1​
-
-spec:
- adapterUrl: "{{ .Values.m3db.url }}"
- type: "m3db"
- filterSelector:
- remote: m3db1​ \ No newline at end of file
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_remotefilteraction_cr.yaml b/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_remotefilteraction_cr.yaml
deleted file mode 100644
index c35d8001..00000000
--- a/vnfs/DAaaS/microservices/remote-config-operator/deploy/crds/onap.org_v1alpha1_remotefilteraction_cr.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-apiVersion: onap.org/v1alpha1
-kind: RemoteFilterAction
-metadata:
- name: relabelconfig002
- labels:
- remote: m3db1
-spec:
- action: drop
- regex: (.*)
- sourceLabels:
- - __name__ \ No newline at end of file
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/deploy/operator.yaml b/vnfs/DAaaS/microservices/remote-config-operator/deploy/operator.yaml
index e465d76f..5be3f765 100644
--- a/vnfs/DAaaS/microservices/remote-config-operator/deploy/operator.yaml
+++ b/vnfs/DAaaS/microservices/remote-config-operator/deploy/operator.yaml
@@ -24,7 +24,7 @@ spec:
- name: WATCH_NAMESPACE
value: ""
- name: WATCH_LABELS
- value: "app=cp-prometheus-prometheus"
+ value: "remote=m3db1"
- name: POD_NAME
valueFrom:
fieldRef:
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/deploy/role.yaml b/vnfs/DAaaS/microservices/remote-config-operator/deploy/role.yaml
index dcf0473d..9d0a8ba3 100644
--- a/vnfs/DAaaS/microservices/remote-config-operator/deploy/role.yaml
+++ b/vnfs/DAaaS/microservices/remote-config-operator/deploy/role.yaml
@@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
+kind: ClusterRole
metadata:
creationTimestamp: null
name: remote-config-operator
diff --git a/vnfs/DAaaS/microservices/remote-config-operator/deploy/role_binding.yaml b/vnfs/DAaaS/microservices/remote-config-operator/deploy/role_binding.yaml
index 2f7e9171..f5b17772 100644
--- a/vnfs/DAaaS/microservices/remote-config-operator/deploy/role_binding.yaml
+++ b/vnfs/DAaaS/microservices/remote-config-operator/deploy/role_binding.yaml
@@ -1,11 +1,12 @@
-kind: RoleBinding
+kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: remote-config-operator
subjects:
- kind: ServiceAccount
name: remote-config-operator
+ namespace: operator
roleRef:
- kind: Role
+ kind: ClusterRole
name: remote-config-operator
apiGroup: rbac.authorization.k8s.io