Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to specify own selector and regular labels in deployment #20883

Merged
merged 3 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: {}