Skip to content

Commit

Permalink
Allow setting labels on Pods (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakhtin authored May 31, 2023
1 parent 5d85e71 commit 89a194a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=$changed" >> $GITHUB_OUTPUT
echo "changed=$(echo "$changed" | tr '\n' ',' | sed 's/,$/\n/')" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
Expand Down
2 changes: 1 addition & 1 deletion charts/polkadot-basic-notification/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: polkadot-basic-notification
description: A Helm chart for Kubernetes
type: application
version: 1.0.1
version: 1.0.2
appVersion: "0.1.0"
maintainers:
- name: Parity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
{{- end }}
labels:
{{- include "polkadot-basic-notification.selectorLabels" . | nindent 8 }}
{{- include "polkadot-basic-notification.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/polkadot-introspector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: polkadot-introspector
description: A Helm chart to deploy polkadot-introspector
type: application
version: 0.4.1
version: 0.4.2
appVersion: "1.0.0"
maintainers:
- name: Parity
Expand Down
1 change: 1 addition & 0 deletions charts/polkadot-introspector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
{{- end }}
labels:
{{- include "polkadot-introspector.selectorLabels" . | nindent 8 }}
{{- include "polkadot-introspector.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 1 addition & 1 deletion charts/testnet-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: testnet-manager
description: A Helm chart to deploy testnet-manager
type: application
version: 1.2.0
version: 1.2.1
appVersion: "1.3.0"
maintainers:
- name: Parity
Expand Down
3 changes: 3 additions & 0 deletions charts/testnet-manager/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ helm.sh/chart: {{ include "testnet-manager.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.extraLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Expand Down
1 change: 1 addition & 0 deletions charts/testnet-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
{{- end }}
labels:
{{- include "testnet-manager.selectorLabels" . | nindent 8 }}
{{- include "testnet-manager.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
2 changes: 2 additions & 0 deletions charts/testnet-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ externalValidators: []
##
extraEnv: []

extraLabels: []

replicaCount: 1

image:
Expand Down

0 comments on commit 89a194a

Please sign in to comment.