[bitnami/spark] Adding extra pod labels (#4311)

* added extra labels values for worker/master pods

* removed identation

* increased patch version

* fixed variable

* Update bitnami/spark/Chart.yaml

Increasing the minor version instead of patch version

Co-authored-by: Andrés Bono <andresbonojimenez@gmail.com>

* changing variable name

Co-authored-by: Andrés Bono <andresbonojimenez@gmail.com>

Co-authored-by: Andrés Bono <andresbonojimenez@gmail.com>
This commit is contained in:
Wolfgang Ladermann
2020-11-12 11:12:49 +01:00
committed by GitHub
co-authored by Andrés Bono
parent 7008521c57
commit 8baa73cded
6 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -21,4 +21,4 @@ name: spark
sources:
- https://github.com/bitnami/bitnami-docker-spark
- https://spark.apache.org/
version: 4.0.0
version: 4.1.0
+2
View File
@@ -67,6 +67,7 @@ The following tables lists the configurable parameters of the spark chart and th
| `master.securityContext.fsGroup` | Group ID for the container | `1001` |
| `master.securityContext.runAsUser` | User ID for the container | `1001` |
| `master.podAnnotations` | Annotations for pods in StatefulSet | `{}` (The value is evaluated as a template) |
| `master.extraPodLabels` | Extra labels for pods in StatefulSet | `{}` (The value is evaluated as a template) |
| `master.nodeSelector` | Node affinity policy | `{}` (The value is evaluated as a template) |
| `master.tolerations` | Tolerations for pod assignment | `[]` (The value is evaluated as a template) |
| `master.affinity` | Affinity for pod assignment | `{}` (The value is evaluated as a template) |
@@ -103,6 +104,7 @@ The following tables lists the configurable parameters of the spark chart and th
| `worker.securityContext.fsGroup` | Group ID for the container | `1001` |
| `worker.securityContext.runAsUser` | User ID for the container | `1001` |
| `worker.podAnnotations` | Annotations for pods in StatefulSet | `{}` |
| `worker.extraPodLabels` | Extra labels for pods in StatefulSet | `{}` (The value is evaluated as a template) |
| `worker.nodeSelector` | Node labels for pod assignment. Used as a template from the values. | `{}` |
| `worker.tolerations` | Toleration labels for pod assignment | `[]` |
| `worker.affinity` | Affinity and AntiAffinity rules for pod assignment | `{}` |
@@ -14,6 +14,9 @@ spec:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
app.kubernetes.io/component: master
{{- if .Values.master.extraPodLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.master.extraPodLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.master.podAnnotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.master.podAnnotations "context" $) | nindent 8 }}
{{- end }}
@@ -14,6 +14,9 @@ spec:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
app.kubernetes.io/component: worker
{{- if .Values.worker.extraPodLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.worker.extraPodLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.worker.podAnnotations }}
annotations: {{- include "common.tplvalues.render" (dict "value" .Values.worker.podAnnotations "context" $) | nindent 8 }}
{{- end }}
+10
View File
@@ -78,6 +78,11 @@ master:
##
podAnnotations: {}
## Labes to add to the statefulset
##
##
extraPodLabels: {}
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
@@ -186,6 +191,11 @@ worker:
##
podAnnotations: {}
## Labes to add to the statefulset
##
##
extraPodLabels: {}
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
+10
View File
@@ -78,6 +78,11 @@ master:
##
podAnnotations: {}
## Labes to add to the statefulset
##
##
extraPodLabels: {}
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
@@ -186,6 +191,11 @@ worker:
##
podAnnotations: {}
## Labes to add to the statefulset
##
##
extraPodLabels: {}
## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##