Skip to content

Commit

Permalink
ref(label) Use openebs.io/component-name=X label for YAML & charts
Browse files Browse the repository at this point in the history
- Labels which are used by helm internally haven't been changed
- Just a new set of labels are added, which can be used by third-party
  clients, scripts for a variety of use cases such as log-aggregation,
  monitoring, etc

Signed-off-by: Harsh Vardhan <harsh.vardhan@mayadata.io>
  • Loading branch information
Harsh Vardhan authored and kmova committed Feb 15, 2019
1 parent 76b679e commit f4e6cb6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s/charts/openebs/templates/daemonset-ndm.yaml
Expand Up @@ -8,6 +8,7 @@ metadata:
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
component: ndm component: ndm
openebs.io/component-name: ndm
spec: spec:
selector: selector:
matchLabels: matchLabels:
Expand Down
Expand Up @@ -8,6 +8,7 @@ metadata:
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
component: apiserver component: apiserver
openebs.io/component-name: maya-apiserver
spec: spec:
replicas: {{ .Values.apiserver.replicas }} replicas: {{ .Values.apiserver.replicas }}
selector: selector:
Expand Down
Expand Up @@ -8,6 +8,7 @@ metadata:
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
component: provisioner component: provisioner
openebs.io/component-name: openebs-provisioner
spec: spec:
replicas: {{ .Values.provisioner.replicas }} replicas: {{ .Values.provisioner.replicas }}
selector: selector:
Expand Down
Expand Up @@ -8,6 +8,7 @@ metadata:
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
component: snapshot-operator component: snapshot-operator
openebs.io/component-name: openebs-snapshot-operator
spec: spec:
replicas: {{ .Values.snapshotOperator.replicas }} replicas: {{ .Values.snapshotOperator.replicas }}
selector: selector:
Expand Down
4 changes: 4 additions & 0 deletions k8s/openebs-operator.yaml
Expand Up @@ -79,6 +79,7 @@ spec:
metadata: metadata:
labels: labels:
name: maya-apiserver name: maya-apiserver
openebs.io/component-name: maya-apiserver
spec: spec:
serviceAccountName: openebs-maya-operator serviceAccountName: openebs-maya-operator
containers: containers:
Expand Down Expand Up @@ -188,6 +189,7 @@ spec:
metadata: metadata:
labels: labels:
name: openebs-provisioner name: openebs-provisioner
openebs.io/component-name: openebs-provisioner
spec: spec:
serviceAccountName: openebs-maya-operator serviceAccountName: openebs-maya-operator
containers: containers:
Expand Down Expand Up @@ -240,6 +242,7 @@ spec:
metadata: metadata:
labels: labels:
name: openebs-snapshot-operator name: openebs-snapshot-operator
openebs.io/component-name: openebs-snapshot-operator
spec: spec:
serviceAccountName: openebs-maya-operator serviceAccountName: openebs-maya-operator
containers: containers:
Expand Down Expand Up @@ -336,6 +339,7 @@ spec:
metadata: metadata:
labels: labels:
name: openebs-ndm name: openebs-ndm
openebs.io/component-name: ndm
spec: spec:
# By default the node-disk-manager will be run on all kubernetes nodes # By default the node-disk-manager will be run on all kubernetes nodes
# If you would like to limit this to only some nodes, say the nodes # If you would like to limit this to only some nodes, say the nodes
Expand Down

0 comments on commit f4e6cb6

Please sign in to comment.