Skip to content

Commit

Permalink
feat(helm): allow for adding extra labels to pods (#19474)
Browse files Browse the repository at this point in the history
* feat(helm): allow for adding extra labels to pods

Signed-off-by: David van der Spek <vanderspek.david@gmail.com>

* update main chart

Signed-off-by: David van der Spek <vanderspek.david@gmail.com>

Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
  • Loading branch information
davidspek authored Dec 15, 2022
1 parent 69bc4a3 commit 9cc3005
Show file tree
Hide file tree
Showing 19 changed files with 117 additions and 2 deletions.
3 changes: 3 additions & 0 deletions charts/airbyte-bootloader/templates/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
name: {{ include "common.names.fullname" . }}
labels:
{{- include "airbyte.labels" . | nindent 4 }}
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 4 }}
{{- end }}
annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: "0"
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-bootloader/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ image:
##
podAnnotations: {}

## podLabels [object] Add extra labels to the bootloader pod
##
podLabels: {}

## containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
3 changes: 1 addition & 2 deletions charts/airbyte-cron/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -29,4 +29,3 @@ dependencies:
tags:
- bitnami-common
version: 1.x.x

3 changes: 3 additions & 0 deletions charts/airbyte-cron/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
metadata:
labels:
{{- include "airbyte.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-cron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ image:
##
podAnnotations: {}

## cron.podLabels [object] Add extra labels to the cron pod(s)
##
podLabels: {}

## cron.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/airbyte-metrics/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
metadata:
labels:
airbyte: metrics
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ image:
##
podAnnotations: {}

## metrics.podLabels [object] Add extra labels to the metrics-reporter pod
##
podLabels: {}

## metrics.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/airbyte-pod-sweeper/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
metadata:
labels:
{{- include "airbyte.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
annotations:
checksum/sweep-pod-script: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.podAnnotations }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-pod-sweeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ image:
##
podAnnotations: {}

## podSweeper.podLabels [object] Add extra labels to the podSweeper pod
##
podLabels: {}

## podSweeper.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/airbyte-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ spec:
metadata:
labels:
{{- include "airbyte.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ image:
##
podAnnotations: {}

## podLabels [object] Add extra labels to the server pod
##
podLabels: {}

## containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/airbyte-temporal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
metadata:
labels:
{{- include "airbyte.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ service:
##
podAnnotations: {}

## temporal.podLabels [object] Add extra labels to the temporal pod
##
podLabels: {}

## temporal.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/airbyte-webapp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
metadata:
labels:
{{- include "airbyte.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-webapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ image:
##
podAnnotations: {}

## webapp.podLabels [object] Add extra labels to the webapp pod(s)
##
podLabels: {}

## webapp.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/airbyte-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
metadata:
labels:
{{- include "airbyte.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/airbyte-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ image:
##
podAnnotations: {}

## worker.podLabels [object] Add extra labels to the worker pod(s)
##
podLabels: {}

## worker.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
32 changes: 32 additions & 0 deletions charts/airbyte/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ webapp:
##
podAnnotations: {}

## webapp.podLabels [object] Add extra labels to the webapp pod(s)
##
podLabels: {}

## webapp.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -397,6 +401,10 @@ pod-sweeper:
##
podAnnotations: {}

## podSweeper.podLabels [object] Add extra labels to the podSweeper pod
##
podLabels: {}

## podSweeper.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -506,6 +514,10 @@ server:
##
podAnnotations: {}

## server.podLabels [object] Add extra labels to the server pod(s)
##
podLabels: {}

## server.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -688,6 +700,10 @@ worker:
##
podAnnotations: {}

## worker.podLabels [object] Add extra labels to the worker pod(s)
##
podLabels: {}

## worker.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -821,6 +837,10 @@ metrics:
##
podAnnotations: {}

## metrics.podLabels [object] Add extra labels to the metrics-reporter pod
##
podLabels: {}

## metrics.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -909,6 +929,10 @@ airbyte-bootloader:
##
podAnnotations: {}

## podLabels [object] Add extra labels to the bootloader pod
##
podLabels: {}

## nodeSelector [object] Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down Expand Up @@ -1059,6 +1083,10 @@ temporal:
##
podAnnotations: {}

## temporal.podLabels [object] Add extra labels to the temporal pod
##
podLabels: {}

## temporal.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -1244,6 +1272,10 @@ cron:
##
podAnnotations: {}

## cron.podLabels [object] Add extra labels to the cron pod(s)
##
podLabels: {}

## cron.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down
28 changes: 28 additions & 0 deletions charts/airbyte/values.yaml.test
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ webapp:
##
podAnnotations: {}

## webapp.podLabels [object] Add extra labels to the webapp pod(s)
##
podLabels: {}

## webapp.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -394,6 +398,10 @@ pod-sweeper:
##
podAnnotations: {}

## podSweeper.podLabels [object] Add extra labels to the podSweeper pod
##
podLabels: {}

## podSweeper.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -503,6 +511,10 @@ server:
##
podAnnotations: {}

## server.podLabels [object] Add extra labels to the server pod(s)
##
podLabels: {}

## server.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -676,6 +688,10 @@ worker:
##
podAnnotations: {}

## worker.podLabels [object] Add extra labels to the worker pod(s)
##
podLabels: {}

## worker.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -809,6 +825,10 @@ metrics:
##
podAnnotations: {}

## metrics.podLabels [object] Add extra labels to the metrics-reporter pod
##
podLabels: {}

## metrics.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down Expand Up @@ -897,6 +917,10 @@ airbyte-bootloader:
##
podAnnotations: {}

## podLabels [object] Add extra labels to the bootloader pod
##
podLabels: {}

## nodeSelector [object] Node labels for pod assignment
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down Expand Up @@ -1047,6 +1071,10 @@ temporal:
##
podAnnotations: {}

## temporal.podLabels [object] Add extra labels to the temporal pod
##
podLabels: {}

## temporal.containerSecurityContext Security context for the container
## Examples:
## containerSecurityContext:
Expand Down

0 comments on commit 9cc3005

Please sign in to comment.