|
1 | 1 | {{/* |
2 | 2 | Kubernetes standard labels |
3 | 3 | */}} |
4 | | -{{- define "cf-common-0.4.0.labels.standard" -}} |
5 | | -app.kubernetes.io/name: {{ include "cf-common-0.4.0.names.name" . }} |
6 | | -helm.sh/chart: {{ include "cf-common-0.4.0.names.chart" . }} |
| 4 | +{{- define "cf-common-0.5.0.labels.standard" -}} |
| 5 | +app.kubernetes.io/name: {{ include "cf-common-0.5.0.names.name" . }} |
| 6 | +helm.sh/chart: {{ include "cf-common-0.5.0.names.chart" . }} |
7 | 7 | app.kubernetes.io/instance: {{ .Release.Name }} |
8 | 8 | app.kubernetes.io/managed-by: {{ .Release.Service }} |
9 | 9 | {{- end -}} |
10 | 10 |
|
11 | 11 | {{/* |
12 | 12 | Labels to use on deploy.spec.selector.matchLabels and svc.spec.selector |
13 | 13 | */}} |
14 | | -{{- define "cf-common-0.4.0.labels.matchLabels" -}} |
15 | | -app.kubernetes.io/name: {{ include "cf-common-0.4.0.names.name" . }} |
| 14 | +{{- define "cf-common-0.5.0.labels.matchLabels" -}} |
| 15 | +app.kubernetes.io/name: {{ include "cf-common-0.5.0.names.name" . }} |
16 | 16 | app.kubernetes.io/instance: {{ .Release.Name }} |
17 | 17 | {{- end -}} |
18 | 18 |
|
19 | 19 |
|
20 | 20 | {{/* |
21 | 21 | Extra labels |
22 | 22 | Usage: |
23 | | -{{ include "cf-common-0.4.0.labels.extraLabels" ( dict "Values" .Values.path.to.the.labels "context" $) }} |
| 23 | +{{ include "cf-common-0.5.0.labels.extraLabels" ( dict "Values" .Values.path.to.the.labels "context" $) }} |
24 | 24 | */}} |
25 | | -{{- define "cf-common-0.4.0.labels.extraLabels" -}} |
| 25 | +{{- define "cf-common-0.5.0.labels.extraLabels" -}} |
26 | 26 | {{- if not (kindIs "map" .Values) -}} |
27 | 27 | {{- fail "ERROR: labels block must be a map" -}} |
28 | 28 | {{- end -}} |
|
34 | 34 | {{/* |
35 | 35 | Annotations |
36 | 36 | Usage: |
37 | | -{{ include "cf-common-0.4.0.annotations" ( dict "Values" .Values.path.to.the.annotations "context" $) }} |
| 37 | +{{ include "cf-common-0.5.0.annotations" ( dict "Values" .Values.path.to.the.annotations "context" $) }} |
38 | 38 | */}} |
39 | | -{{- define "cf-common-0.4.0.annotations" -}} |
| 39 | +{{- define "cf-common-0.5.0.annotations" -}} |
40 | 40 | {{- if not (kindIs "map" .Values) -}} |
41 | 41 | {{- fail "ERROR: annotations block must be a map" -}} |
42 | 42 | {{- end -}} |
|
0 commit comments