mayadata-io / openebs-upgrade

Operator for OpenEBS
2 stars 5 forks source link

enhance(install): add openebs-upgrade specific labels to OpenEBS components #26

Closed sagarkrsd closed 4 years ago

sagarkrsd commented 4 years ago

This PR intends to achieve the following things:

Some of the examples of the labels that have been added to the various OpenEBS components are:

For NDM components,

NAME          DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR                 AGE   LABELS
openebs-ndm   4         4         4       4            4           mayadata.io/data-plane=true   33m   name=openebs-ndm(existing),openebs-upgrade.dao.mayadata.io/component-group=ndm,openebs-upgrade.dao.mayadata.io/component-name=openebs-ndm,openebs-upgrade.dao.mayadata.io/component-subgroup=daemon,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=ndm(existing),openebs.io/version=1.9.0(existing)
NAME                   READY   UP-TO-DATE   AVAILABLE   AGE   LABELS
openebs-ndm-operator   1/1     1            1           44m   name=openebs-ndm-operator(existing),openebs-upgrade.dao.mayadata.io/component-group=ndm,openebs-upgrade.dao.mayadata.io/component-name=openebs-ndm-operator,openebs-upgrade.dao.mayadata.io/component-subgroup=operator,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=ndm-operator(existing),openebs.io/version=1.9.0(existing)
NAME                 DATA   AGE   LABELS
openebs-ndm-config   1      45m   openebs-upgrade.dao.mayadata.io/component-group=ndm,openebs-upgrade.dao.mayadata.io/component-name=openebs-ndm-config,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=ndm-config(existing)

For CSI related components

NAME                     DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE   LABELS
openebs-cstor-csi-node   3         3         3       3            3           <none>          37m   name=openebs-cstor-csi-node(existing),openebs-upgrade.dao.mayadata.io/component-group=cstor-csi,openebs-upgrade.dao.mayadata.io/component-name=openebs-cstor-csi-node,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=openebs-cstor-csi-node(existing),openebs.io/version=1.9.0(existing)
NAME                           READY   AGE   LABELS
openebs-cstor-csi-controller   1/1     39m   name=openebs-cstor-csi-controller(existing)
,openebs-upgrade.dao.mayadata.io/component-group=cstor-csi,openebs-upgrade.dao.mayadata.io/component-name=openebs-cstor-csi-controller,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=openebs-cstor-csi-controller(existing)
,openebs.io/version=1.9.0(existing)

For maya-apiserver

NAME             READY   UP-TO-DATE   AVAILABLE   AGE   LABELS
maya-apiserver   1/1     1            1           41m   name=maya-apiserver(existing),openebs-upgrade.dao.mayadata.io/component-group=maya-apiserver,openebs-upgrade.dao.mayadata.io/component-name=maya-apiserver,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=maya-apiserver(existing),openebs.io/version=1.9.0(existing)
NAME                     TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE   LABELS
maya-apiserver-service   ClusterIP   10.97.161.27   <none>        5656/TCP   41m   openebs-upgrade.dao.mayadata.io/component-group=maya-apiserver,openebs-upgrade.dao.mayadata.io/component-name=maya-apiserver-service,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=maya-apiserver-svc(existing)

For CSPC operator:

NAME            READY   UP-TO-DATE   AVAILABLE   AGE   LABELS
cspc-operator   1/1     1            1           43m   name=cspc-operator(existing),openebs-upgrade.dao.mayadata.io/component-group=cspc,openebs-upgrade.dao.mayadata.io/component-name=cspc-operator,openebs-upgrade.dao.mayadata.io/managed=true,openebs.io/component-name=cspc-operator(existing),openebs.io/version=1.9.0(existing)

Signed-off-by: sagarkrsd sagar.kumar@mayadata.io

AmitKumarDas commented 4 years ago

component-type is not required imo

sagarkrsd commented 4 years ago

component-type is not required imo

I have removed the component-type label.