Skip to content

Commit

Permalink
manage labels
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Aug 31, 2023
1 parent e56f608 commit d87fea9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
13 changes: 7 additions & 6 deletions charts/redis-operator/templates/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ metadata:
name: {{ .Values.redisOperator.name }}
namespace: {{ .Release.Namespace }}
labels:
control-plane: "{{ .Values.redisOperator.name }}"
app.kubernetes.io/name: {{ .Values.redisOperator.name }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/name : {{ .Values.redisOperator.name }}
helm.sh/chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by : {{ .Release.Service }}
app.kubernetes.io/instance : {{ .Release.Name }}
app.kubernetes.io/version : {{ .Chart.AppVersion }}
app.kubernetes.io/part-of : {{ .Release.Name }}
app.kubernetes.io/component : operator
spec:
replicas: {{ .Values.replicas }}
selector:
Expand Down
11 changes: 9 additions & 2 deletions charts/redis-operator/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
apiVersion: v1
kind: Service
metadata:
# I would put labels here later - shubham
labels:
app.kubernetes.io/name : {{ .Values.redisOperator.name }}
helm.sh/chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by : {{ .Release.Service }}
app.kubernetes.io/instance : {{ .Release.Name }}
app.kubernetes.io/version : {{ .Chart.AppVersion }}
app.kubernetes.io/component: webhook
app.kubernetes.io/part-of : {{ .Release.Name }}
name: {{ .Values.service.name }}
namespace: {{ .Release.Namespace }}
spec:
Expand All @@ -10,4 +17,4 @@ spec:
protocol: TCP
targetPort: 9443
selector:
control-plane: controller-manager
control-plane: "{{ .Values.redisOperator.name }}"

0 comments on commit d87fea9

Please sign in to comment.