Commit ff4b771 1 parent e13fe61 commit ff4b771 Copy full SHA for ff4b771
File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ apiVersion: v2
2
2
name : cnpg-cluster
3
3
description : A Helm chart to create cloudnative-pg.io clusters
4
4
type : application
5
- version : 2.0.1
5
+ version : 2.0.2
6
6
appVersion : " 14.5-6"
Original file line number Diff line number Diff line change @@ -35,11 +35,15 @@ Common labels
35
35
*/} }
36
36
{ {- define " cnpg-cluster.labels" -} }
37
37
helm.sh/chart: { { include " cnpg-cluster.chart" . } }
38
+ { {- if and (hasKey .Values " labels" ) (.Values.labels) } }
39
+ { { toYaml .Values.labels } }
40
+ { {- else } }
38
41
{ { include " cnpg-cluster.selectorLabels" . } }
39
42
{ {- if .Chart.AppVersion } }
40
43
app.kubernetes.io/version: { { .Chart.AppVersion | quote } }
41
44
{ {- end } }
42
45
app.kubernetes.io/managed-by: { { .Release.Service } }
46
+ { {- end -} }
43
47
{ {- end } }
44
48
45
49
{ {/*
Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ nameOverride: ""
28
28
# -- String to fully override cnpg-cluster.fullname template with a string
29
29
fullnameOverride : " "
30
30
31
+ # -- Labels for the cluster
32
+ # This field allows adding extra labels to cluster.
33
+ # Note: The following labels cannot be set through this field, as they are reserved:
34
+ # - helm.sh/chart
35
+ # Attempting to use these labels will be cause a conflict.
36
+ labels :
37
+ # app.kubernetes.io/name: monkey-cluster
38
+ # app.kubernetes.io/instance: monkey-moon
39
+ # env: production
40
+
31
41
# -- CPU/Memory resource requests/limits
32
42
resources : {}
33
43
# We usually recommend not to specify default resources and to leave this as a conscious
You can’t perform that action at this time.
0 commit comments