Skip to content

Commit

Permalink
Add feature to specify own selector and regular labels in deployment (#…
Browse files Browse the repository at this point in the history
…20883)

* Add feature to specify own selector and regular labels in deployment

* Add extraSelector and extraLabels to global values
  • Loading branch information
xpuska513 authored Dec 27, 2022
1 parent 2da903c commit c3c5a41
Show file tree
Hide file tree
Showing 12 changed files with 114 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/airbyte-bootloader/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "airbyte.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.extraLabels}}
{{- with mergeOverwrite .Values.extraLabels .Values.global.extraLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -48,6 +53,11 @@ Selector labels
{{- define "airbyte.selectorLabels" -}}
app.kubernetes.io/name: {{ include "airbyte.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.extraSelectorLabels}}
{{- with mergeOverwrite .Values.extraSelectorLabels .Values.global.extraSelectorLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
9 changes: 9 additions & 0 deletions charts/airbyte-bootloader/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ global:
secrets: {}
env_vars: {}
extraContainers: []
## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}


enabled: true
Expand Down Expand Up @@ -174,3 +178,8 @@ extraVolumes: []
# DATABASE_PASSWORD: 12345
# DATABASE_USER: airbyte
env_vars: {}

## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
10 changes: 10 additions & 0 deletions charts/airbyte-cron/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "airbyte.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.extraLabels}}
{{- with mergeOverwrite .Values.extraLabels .Values.global.extraLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -48,6 +53,11 @@ Selector labels
{{- define "airbyte.selectorLabels" -}}
app.kubernetes.io/name: {{ include "airbyte.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.extraSelectorLabels}}
{{- with mergeOverwrite .Values.extraSelectorLabels .Values.global.extraSelectorLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
9 changes: 9 additions & 0 deletions charts/airbyte-cron/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ global:
configMapName: ""
secretName: ""
extraContainers: []
## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
database:
secretName: ""
secretValue: ""
Expand Down Expand Up @@ -212,3 +216,8 @@ env_vars: {}




## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
10 changes: 10 additions & 0 deletions charts/airbyte-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "airbyte.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.extraLabels}}
{{- with mergeOverwrite .Values.extraLabels .Values.global.extraLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -48,6 +53,11 @@ Selector labels
{{- define "airbyte.selectorLabels" -}}
app.kubernetes.io/name: {{ include "airbyte.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.extraSelectorLabels}}
{{- with mergeOverwrite .Values.extraSelectorLabels .Values.global.extraSelectorLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
9 changes: 9 additions & 0 deletions charts/airbyte-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ global:
secretName: ""
credVolumeOverride: ""
extraContainers: []
## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
database:
secretName: ""
secretValue: ""
Expand Down Expand Up @@ -404,3 +408,8 @@ secrets: {}
# USE_STREAM_CAPABLE_STATE: true
env_vars: {}


## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
10 changes: 10 additions & 0 deletions charts/airbyte-temporal/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "airbyte.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.extraLabels}}
{{- with mergeOverwrite .Values.extraLabels .Values.global.extraLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -48,6 +53,11 @@ Selector labels
{{- define "airbyte.selectorLabels" -}}
app.kubernetes.io/name: {{ include "airbyte.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.extraSelectorLabels}}
{{- with mergeOverwrite .Values.extraSelectorLabels .Values.global.extraSelectorLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
9 changes: 9 additions & 0 deletions charts/airbyte-temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ global:
configMapName: ""
secretName: ""
extraContainers: []
## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
database:
secretName: ""
secretValue: ""
Expand Down Expand Up @@ -175,3 +179,8 @@ secrets: {}
# POSTGRES_PWD: 12345

env_vars: {}

## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
10 changes: 10 additions & 0 deletions charts/airbyte-webapp/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "airbyte.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.extraLabels}}
{{- with mergeOverwrite .Values.extraLabels .Values.global.extraLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -48,6 +53,11 @@ Selector labels
{{- define "airbyte.selectorLabels" -}}
app.kubernetes.io/name: {{ include "airbyte.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.extraSelectorLabels}}
{{- with mergeOverwrite .Values.extraSelectorLabels .Values.global.extraSelectorLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}


Expand Down
9 changes: 9 additions & 0 deletions charts/airbyte-webapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ global:
configMapName: ""
secretName: ""
extraContainers: []
## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
database:
secretName: ""
secretValue: ""
Expand Down Expand Up @@ -244,3 +248,8 @@ env_vars: {}




## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
10 changes: 10 additions & 0 deletions charts/airbyte-worker/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "airbyte.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.extraLabels}}
{{- with mergeOverwrite .Values.extraLabels .Values.global.extraLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand All @@ -48,6 +53,11 @@ Selector labels
{{- define "airbyte.selectorLabels" -}}
app.kubernetes.io/name: {{ include "airbyte.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.extraSelectorLabels}}
{{- with mergeOverwrite .Values.extraSelectorLabels .Values.global.extraSelectorLabels }}
{{ toYaml .}}
{{- end }}
{{- end }}
{{- end }}

{{/*
Expand Down
9 changes: 9 additions & 0 deletions charts/airbyte-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ global:
credVolumeOverride: ""
secretName: ""
extraContainers: []
## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}
database:
secretName: ""
secretValue: ""
Expand Down Expand Up @@ -367,3 +371,8 @@ secrets: {}
# USE_STREAM_CAPABLE_STATE: true

env_vars: {}

## extraSelectorLables [object] - use to specify own additional selector labels for deployment
extraSelectorLabels: {}
## extraLabels [object] - use to specify own additional labels for deployment
extraLabels: {}

0 comments on commit c3c5a41

Please sign in to comment.