aboutsummaryrefslogtreecommitdiffstats
path: root/src/monitor/deploy
diff options
context:
space:
mode:
authorSrivahni Chivukula <srivahni.chivukula@intel.com>2020-04-07 17:52:05 -0700
committerRitu Sood <ritu.sood@intel.com>2020-06-16 20:06:29 +0000
commit964db6a95cfdd82969f6af5a09822929a1862408 (patch)
treeb8f31df98b537c32763a2c409d07eaec153f9372 /src/monitor/deploy
parentdd6613ec4e4bbe79699f6b5802334f968dfb8306 (diff)
Status operator to update status of resources
This operator monitors the status of resources like pods, services, deployments, daemonsets, configmaps etc. and updates the status in the CR accordingly. Issue-ID: MULTICLOUD-1047 Signed-off-by: Srivahni Chivukula <srivahni.chivukula@intel.com> Change-Id: I7d92584a44c8add2df69f2985140a55b460ac037
Diffstat (limited to 'src/monitor/deploy')
-rw-r--r--src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_cr.yaml5
-rw-r--r--src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_crd.yaml35
-rw-r--r--src/monitor/deploy/operator.yaml6
3 files changed, 41 insertions, 5 deletions
diff --git a/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_cr.yaml b/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_cr.yaml
index 9e6e42d3..86fe0553 100644
--- a/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_cr.yaml
+++ b/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_cr.yaml
@@ -2,12 +2,11 @@ apiVersion: k8splugin.io/v1alpha1
kind: ResourceBundleState
metadata:
name: example-resourcebundlestate
- namespace: test
labels:
- "k8splugin.io/rb-inst-id": "bionic-beaver"
+ "emco/deployment-id": "bionic-beaver"
spec:
selector:
matchLabels:
- "k8splugin.io/rb-inst-id": "bionic-beaver"
+ "emco/deployment-id": "bionic-beaver"
status:
ready: false
diff --git a/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_crd.yaml b/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_crd.yaml
index 68585a32..dd38b2ef 100644
--- a/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_crd.yaml
+++ b/src/monitor/deploy/crds/k8splugin_v1alpha1_resourcebundlestate_crd.yaml
@@ -58,11 +58,46 @@ spec:
items:
type: object
type: array
+ configMapStatuses:
+ items:
+ type: object
+ type: array
+ deploymentStatuses:
+ items:
+ type: object
+ type: array
+ secretStatuses:
+ items:
+ type: object
+ type: array
+ daemonSetStatuses:
+ items:
+ type: object
+ type: array
+ ingressStatuses:
+ items:
+ type: object
+ type: array
+ jobStatuses:
+ items:
+ type: object
+ type: array
+ statefulSetStatuses:
+ items:
+ type: object
+ type: array
required:
- ready
- resourceCount
- podStatuses
- serviceStatuses
+ - configMapStatuses
+ - deploymentStatuses
+ - secretStatuses
+ - daemonSetStatuses
+ - ingressStatuses
+ - jobStatuses
+ - statefulSetStatuses
type: object
version: v1alpha1
versions:
diff --git a/src/monitor/deploy/operator.yaml b/src/monitor/deploy/operator.yaml
index 9affeaaa..a06c07d3 100644
--- a/src/monitor/deploy/operator.yaml
+++ b/src/monitor/deploy/operator.yaml
@@ -2,15 +2,17 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: monitor
+ labels:
+ "emco/deployment-id": "bionic-beaver"
spec:
replicas: 1
selector:
matchLabels:
- name: monitor
+ "emco/deployment-id": "bionic-beaver"
template:
metadata:
labels:
- name: monitor
+ "emco/deployment-id": "bionic-beaver"
spec:
serviceAccountName: monitor
containers: