Skip to content

Commit

Permalink
Merge pull request #65 from paritytech/extra-service-labels
Browse files Browse the repository at this point in the history
Set extra labels on both pods and services
  • Loading branch information
PierreBesson authored Mar 23, 2022
2 parents b7f6057 + f5b4e6f commit 04a43da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: node
description: A Helm chart to deploy Substrate/Polkadot nodes
type: application
version: 1.4.2
version: 1.4.3
appVersion: "0.0.1"
6 changes: 3 additions & 3 deletions charts/node/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ pruning: archive
unsafe-pruning: false
{{- end }}
{{- end }}
{{- with .Values.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -72,6 +69,9 @@ Service labels
chain: {{ .Values.node.chain }}
release: {{ .Release.Name }}
role: {{ .Values.node.role }}
{{- with .Values.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand Down
2 changes: 1 addition & 1 deletion charts/node/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
name: {{ $fullname }}-{{ $i }}
labels:
{{- $serviceLabels | nindent 4 }}
instance: {{ $fullname }}-{{ $i }}
node: {{ $fullname }}-{{ $i }}
spec:
type: ClusterIP
clusterIP: None
Expand Down
1 change: 1 addition & 0 deletions charts/node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ ingress:
# hosts:
# - chart-example.local

# Add extra labels on pods and services
#extraLabels:
# type: rpc

Expand Down

0 comments on commit 04a43da

Please sign in to comment.