Skip to content

Commit

Permalink
[Common] Add extraLabels in pods (#98)
Browse files Browse the repository at this point in the history
* Add extraLabels in pods
  • Loading branch information
lazam authored Jun 22, 2022
1 parent 6952419 commit 00773c0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: common
description: A generic helm chart for Kubernetes
type: application
version: 0.2.0
version: 0.2.1
maintainers:
- name: Parity
url: https://github.com/paritytech/helm-charts
3 changes: 3 additions & 0 deletions charts/common/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
{{- end }}
labels:
{{- include "common.selectorLabels" . | nindent 8 }}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
3 changes: 3 additions & 0 deletions charts/common/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
{{- end }}
labels:
{{- include "common.selectorLabels" . | nindent 8 }}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
9 changes: 4 additions & 5 deletions charts/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ fullnameOverride: ""
## Provide a name to substitute for the full names of resources
##
namespaceOverride: ""

## Additional common labels on resources
##
# extraLabels:
# env: production

extraLabels: {}

## Image to use for the chart
##
Expand All @@ -35,7 +34,7 @@ replicaCount: 1
##
imagePullSecrets: []

## Service account for the node to use
## Service account for the pod to use
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
##
serviceAccount:
Expand All @@ -50,7 +49,7 @@ serviceAccount:
##
name: ""

## Annotations to add to the node pod
## Annotations to add to the pod
##
podAnnotations: {}

Expand Down

0 comments on commit 00773c0

Please sign in to comment.