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 connector builder server to airbyte proxy, kube overlays, and helm charts #19554

Merged
merged 199 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
7736109
init
girarda Oct 18, 2022
ad5abf0
bad copy/paste
girarda Oct 18, 2022
aca3534
move to top level
girarda Oct 18, 2022
75ad65c
Revert "move to top level"
girarda Oct 19, 2022
77197a1
attempt to wire up connector builder frontend to server
lmossman Oct 19, 2022
b05daa8
copy from octaviacli
girarda Oct 19, 2022
8543034
fix connection to builder server
lmossman Oct 19, 2022
7fad84f
update
girarda Oct 19, 2022
4cad0d5
Merge branch 'master' into alex/connector_builder
girarda Oct 19, 2022
f745d28
delete
girarda Oct 19, 2022
795523b
Update
girarda Oct 19, 2022
f9258a7
delete python-version
girarda Oct 19, 2022
2419f54
Revert "delete python-version"
girarda Oct 19, 2022
5022710
setup python
girarda Oct 19, 2022
3360dad
install python
girarda Oct 19, 2022
faf6eae
rename
girarda Oct 19, 2022
39efd07
kube stuff
girarda Oct 20, 2022
33e895b
Install python
girarda Oct 20, 2022
88d846a
missing kube file
girarda Oct 20, 2022
e8da375
rename
girarda Oct 20, 2022
1172f14
Update files
girarda Oct 20, 2022
82e98c7
Update bumpversion
girarda Oct 20, 2022
0e16c33
install python
girarda Oct 20, 2022
e1e01b7
try with different entrypoint
girarda Oct 20, 2022
0820e52
Merge branch 'master' into alex/connector_builder
girarda Oct 20, 2022
71516c8
rename container
girarda Oct 20, 2022
a10d7ba
point to docker-compose.yaml file
girarda Oct 20, 2022
742913b
derp
girarda Oct 20, 2022
66fa528
copy acceptance_test.sh
girarda Oct 20, 2022
c7cf7e5
merge
girarda Oct 21, 2022
4b6e5db
copy from acceptance tests
girarda Oct 21, 2022
7bc8ada
delete cruft
girarda Oct 21, 2022
9832f6f
update
girarda Oct 25, 2022
8d26e6e
remove application env
girarda Oct 25, 2022
8db977e
merge
girarda Oct 25, 2022
a2e4ac9
Merge branch 'master' into alex/connector_builder_fastapi
girarda Oct 26, 2022
0ddbaec
Merge branch 'lmossman/connector-builder-wire-frontend-to-server' int…
girarda Oct 26, 2022
a70e0f6
reset
girarda Oct 26, 2022
77aa027
reset to master
girarda Oct 26, 2022
099cecf
update
girarda Oct 26, 2022
9cee657
skip comprehensive incremental tests
girarda Oct 26, 2022
05ea9db
Revert "skip comprehensive incremental tests"
girarda Oct 26, 2022
dabce80
Merge branch 'master' into alex/connector_builder_fastapi
girarda Oct 27, 2022
ba02a4a
reset to master
girarda Oct 27, 2022
46fa3bc
remove cruft
girarda Oct 27, 2022
5708ef6
readme
sherifnada Oct 29, 2022
77859b4
readme
sherifnada Oct 29, 2022
8e943ac
save
sherifnada Nov 3, 2022
cfc7dad
buncha stuff
sherifnada Nov 3, 2022
1b71c77
it works
sherifnada Nov 3, 2022
3dd47bb
improvements
sherifnada Nov 3, 2022
641d696
comment
sherifnada Nov 3, 2022
c027676
codesnippet
sherifnada Nov 3, 2022
24fc6a6
merge master
girarda Nov 3, 2022
f8dffee
delete superfluous steps
girarda Nov 3, 2022
0cf0a9c
update port to 8003
girarda Nov 3, 2022
bdd5c7a
reset to master
girarda Nov 3, 2022
98c4a41
Update publish docker
girarda Nov 3, 2022
57dda04
move openapi spec to airbyte-connector-builder
girarda Nov 3, 2022
7dc72f4
point to openapi spec
girarda Nov 3, 2022
71cae24
dont expose the connector builder to localhost
girarda Nov 3, 2022
2d91e18
reset FE components to master
girarda Nov 3, 2022
3d15749
Don't deploy the connector-builder
girarda Nov 3, 2022
beac3d4
Revert "Don't deploy the connector-builder"
girarda Nov 3, 2022
2e0bd72
Revert "Revert "Don't deploy the connector-builder""
girarda Nov 3, 2022
52f2f7a
comment out more things related to connector builder server
girarda Nov 3, 2022
39a5da2
more attempts at removing the connector builder
girarda Nov 3, 2022
f8ed162
comment out more things
girarda Nov 3, 2022
e2d5199
Update airbyte-connector-builder/README.md
sherifnada Nov 3, 2022
3c2376c
fixes
sherifnada Nov 3, 2022
601b156
rename gradle task
sherifnada Nov 3, 2022
566ccfd
save
sherifnada Nov 3, 2022
19b46dd
copyright header
sherifnada Nov 3, 2022
9c88d96
Apply suggestions from code review
girarda Nov 3, 2022
23579ba
Update airbyte-webapp/src/config/configProviders.ts
girarda Nov 3, 2022
cc44f00
update
girarda Nov 3, 2022
0c66a45
Merge branch 'master' into alex/connector_builder_fastapi
girarda Nov 3, 2022
b2d802b
rename
girarda Nov 3, 2022
6ccd6c6
indent
girarda Nov 3, 2022
e46a837
Revert "move openapi spec to airbyte-connector-builder"
girarda Nov 3, 2022
91db24f
Revert "rename"
girarda Nov 3, 2022
abf562f
Revert "Revert "rename""
girarda Nov 3, 2022
7c94331
point to wrong file in case it fixes the build
girarda Nov 3, 2022
787d0c0
point to right openapi file
girarda Nov 3, 2022
75ff3ad
Revert "Revert "move openapi spec to airbyte-connector-builder""
girarda Nov 4, 2022
46a4d25
point to moved file
girarda Nov 4, 2022
08953b4
fix path
girarda Nov 4, 2022
4e184d0
Update from master
girarda Nov 4, 2022
2f51292
Merge branch 'master' into alex/connector_builder_fastapi
girarda Nov 4, 2022
1c43c13
newline
girarda Nov 4, 2022
ed9fea0
Add failing test
girarda Nov 4, 2022
245b0b2
Revert "Add failing test"
girarda Nov 4, 2022
d941984
comment
girarda Nov 4, 2022
0f048d3
update commented requires
girarda Nov 4, 2022
460720a
Add a comment
girarda Nov 4, 2022
11079be
comments
sherifnada Nov 4, 2022
83f7875
conf
sherifnada Nov 4, 2022
1dfdf0f
save
sherifnada Nov 4, 2022
6de067a
formatting is for losers anyways
sherifnada Nov 4, 2022
88ddd95
pyproject
sherifnada Nov 4, 2022
ce77780
toml
sherifnada Nov 4, 2022
3b24d09
toml
sherifnada Nov 5, 2022
3d172df
saved
sherifnada Nov 5, 2022
340afa0
nice
sherifnada Nov 5, 2022
b32c952
anothaone
sherifnada Nov 5, 2022
3c5763f
fmt
sherifnada Nov 5, 2022
b10488e
fixmypy
sherifnada Nov 6, 2022
44e9b68
fix autogen notice header location
sherifnada Nov 6, 2022
f2cebda
improvecomment
sherifnada Nov 6, 2022
e4a9df4
add 8003 to nginx for connector builder server
girarda Nov 10, 2022
a544c90
enable the server
girarda Nov 10, 2022
a24e07a
save working branch
lmossman Nov 10, 2022
4878d3a
point to port 80
girarda Nov 10, 2022
42e927d
merge
sherifnada Nov 10, 2022
157996f
not ideal, but i can curl localhost:8003
girarda Nov 10, 2022
8afe744
fmt
sherifnada Nov 10, 2022
0d7be8e
delete license and disable caching
sherifnada Nov 10, 2022
9861bcf
point to port 80
girarda Nov 10, 2022
86fef34
port 80
girarda Nov 10, 2022
45447a4
removeyaml
sherifnada Nov 10, 2022
57da9db
expose port 80
girarda Nov 10, 2022
8959d71
merge with base
lmossman Nov 10, 2022
a2305c1
comment out the server
girarda Nov 10, 2022
c0d6301
Pass env var
girarda Nov 10, 2022
66823f2
Revert "comment out the server"
girarda Nov 10, 2022
2e5c014
expose port 80
girarda Nov 10, 2022
b9d116e
Revert "Revert "comment out the server""
girarda Nov 10, 2022
9eb3d04
typo
girarda Nov 10, 2022
21190e4
merge with master
lmossman Nov 10, 2022
3999475
fix merge and uncomment flakeCheck
lmossman Nov 10, 2022
509d64b
undo css change
lmossman Nov 10, 2022
d0edc5a
merge master
sherifnada Nov 10, 2022
88eac65
fix typo
sherifnada Nov 10, 2022
9e01daa
format
sherifnada Nov 10, 2022
4878c9d
enable CORS
sherifnada Nov 10, 2022
2086820
move template to backend server
lmossman Nov 10, 2022
5e67729
Merge branch 'master' into lmossman/connector-builder-end-to-end-request
lmossman Nov 10, 2022
40b5ae0
try adding connector builder server to 'generate-docker' task to see …
lmossman Nov 10, 2022
2102009
try adding buildDockerImage task
lmossman Nov 10, 2022
03b31e9
Revert "try adding buildDockerImage task"
girarda Nov 10, 2022
6b37ab3
Revert "try adding connector builder server to 'generate-docker' task…
girarda Nov 10, 2022
1881cf7
try adding gradle.properties
lmossman Nov 10, 2022
ca134e2
missing file
girarda Nov 10, 2022
f6a88a2
Revert "try adding buildDockerImage task"
lmossman Nov 10, 2022
030bcdb
Revert "try adding connector builder server to 'generate-docker' task…
lmossman Nov 10, 2022
0fa8d02
build airbyte-connector-builder-server image
girarda Nov 10, 2022
3f287db
merge
girarda Nov 10, 2022
eb6e262
Add .
girarda Nov 10, 2022
f116b73
comment
girarda Nov 10, 2022
b7254f5
build connector builder server as part of octavia_cli
girarda Nov 15, 2022
81206f0
build connector builder too
girarda Nov 15, 2022
61d3b36
merge with master
lmossman Nov 15, 2022
7425688
patch
girarda Nov 15, 2022
0c3e63a
missing file
girarda Nov 16, 2022
5c25bae
comment
girarda Nov 16, 2022
7321085
comment
girarda Nov 16, 2022
9153a63
run unit tests in a container
girarda Nov 16, 2022
0c7d98a
Run integration tests
girarda Nov 16, 2022
7d733c8
run
girarda Nov 16, 2022
7f6bc03
move to platform build
girarda Nov 16, 2022
7b260b5
format
girarda Nov 16, 2022
9ca9a4f
rootdir
girarda Nov 16, 2022
43c2a12
get the path from the project
girarda Nov 17, 2022
d1c9b13
Update
girarda Nov 17, 2022
62428df
pyproject
girarda Nov 17, 2022
0226c92
delete a bunch of code
girarda Nov 17, 2022
60895ac
parameterize
girarda Nov 17, 2022
8d4617d
run tests
girarda Nov 17, 2022
5ff630e
update
girarda Nov 17, 2022
ad8b5b2
rename
girarda Nov 17, 2022
7a532a8
comment
girarda Nov 17, 2022
64d4a31
reset
girarda Nov 17, 2022
28a7dc1
merge
girarda Nov 17, 2022
d71a138
uncomment
girarda Nov 17, 2022
a95b00b
merge
girarda Nov 17, 2022
8948cbd
checkpoint
girarda Nov 17, 2022
1cdf272
merge with master
lmossman Nov 17, 2022
98867ab
process detail in apiOverride
lmossman Nov 17, 2022
de46e15
fix gradle
lmossman Nov 17, 2022
fdb8931
fix scrollbars
lmossman Nov 17, 2022
1ad0e84
merge
girarda Nov 17, 2022
10c623e
update
girarda Nov 17, 2022
20e0461
password
girarda Nov 18, 2022
99b237a
reset
girarda Nov 18, 2022
48a01de
merge
girarda Nov 18, 2022
b5371d8
reset
girarda Nov 18, 2022
18f5f2f
delete unused file
girarda Nov 18, 2022
4501427
make requests to connector builder server proxy work on docker-compose
lmossman Nov 18, 2022
f9b94cc
Merge branch 'master' into alex/end_to_end_test
lmossman Nov 21, 2022
e4cc26f
enable connector builder server on kube
lmossman Nov 21, 2022
b017af6
save progress on helm chart
lmossman Nov 21, 2022
36b5064
save current helm progress
lmossman Nov 21, 2022
02e8b1f
add builder api url to test
lmossman Nov 21, 2022
ea56e18
use camelcase instead of hyphens
lmossman Nov 21, 2022
7f7aa8d
add connector builder server to publish helm charts
lmossman Nov 21, 2022
dc151ee
remove FIXME comments and add builder server to set resource limits
lmossman Nov 21, 2022
9be19fa
remove more fixme comments
lmossman Nov 21, 2022
15733e3
Merge branch 'master' into alex/end_to_end_test
lmossman Nov 21, 2022
791e4c8
fix other env vars for the kube overlays
lmossman Nov 21, 2022
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
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ CONNECTOR_BUILDER_API_HOST=airbyte-connector-builder-server:80
WEBAPP_URL=http://localhost:8000/
# Although not present as an env var, required for webapp configuration.
API_URL=/api/v1/
CONNECTOR_BUILDER_API_URL=/connector-builder-api

### JOBS ###
# Relevant to scaling.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-helm-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: "Helm package"
shell: bash
run: |
declare -a StringArray=("airbyte-bootloader" "airbyte-server" "airbyte-temporal" "airbyte-webapp" "airbyte-pod-sweeper" "airbyte-worker" "airbyte-metrics" "airbyte-cron")
declare -a StringArray=("airbyte-bootloader" "airbyte-server" "airbyte-temporal" "airbyte-webapp" "airbyte-pod-sweeper" "airbyte-worker" "airbyte-metrics" "airbyte-cron" "airbyte-connector-builder-server")
for val in ${StringArray[@]}; do
cd ./airbyte/charts/${val} && helm dep update && cd $GITHUB_WORKSPACE
sed -i -E 's/version: \"[0-9]+\.[0-9]+\.[0-9]+\"/version: \"${{ needs.generate-semantic-version.outputs.next-version }}\"/' ./airbyte/charts/${val}/Chart.yaml
Expand Down
3 changes: 2 additions & 1 deletion airbyte-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ ENV VERSION ${VERSION}

RUN apt-get update -y && apt-get install -y apache2-utils && rm -rf /var/lib/apt/lists/*

# This variable can be used to update the destintion containers that Nginx proxies to.
# This variable can be used to update the destination containers that Nginx proxies to.
ENV PROXY_PASS_WEB "http://airbyte-webapp:80"
ENV PROXY_PASS_API "http://airbyte-server:8001"
ENV CONNECTOR_BUILDER_SERVER_API "http://airbyte-connector-builder-server:80"

# Nginx config file
WORKDIR /
Expand Down
21 changes: 21 additions & 0 deletions airbyte-proxy/nginx-auth.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,25 @@ http {
}
}
}

server {
listen 8003;

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

auth_basic "Welcome to Airbyte";
auth_basic_user_file /etc/nginx/.htpasswd;

proxy_pass "${CONNECTOR_BUILDER_SERVER_API}";

error_page 401 /etc/nginx/401.html;
location ~ (401.html)$ {
alias /etc/nginx/$1;
auth_basic off;
}
}
}
}
12 changes: 12 additions & 0 deletions airbyte-proxy/nginx-no-auth.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,16 @@ http {
proxy_pass "${PROXY_PASS_API}";
}
}

server {
listen 8003;

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_pass "${CONNECTOR_BUILDER_SERVER_API}";
}
}
}
2 changes: 1 addition & 1 deletion airbyte-proxy/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ else
TEMPLATE_PATH="/etc/nginx/templates/nginx-auth.conf.template"
fi

envsubst '${PROXY_PASS_WEB} ${PROXY_PASS_API} ${PROXY_PASS_RESOLVER}' < $TEMPLATE_PATH > /etc/nginx/nginx.conf
envsubst '${PROXY_PASS_WEB} ${PROXY_PASS_API} ${CONNECTOR_BUILDER_SERVER_API} ${PROXY_PASS_RESOLVER}' < $TEMPLATE_PATH > /etc/nginx/nginx.conf

echo "starting nginx..."
nginx -v
Expand Down
2 changes: 1 addition & 1 deletion airbyte-proxy/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VERSION="${VERSION:-dev}" # defaults to "dev", otherwise it is set by environmen
echo "testing with proxy container airbyte/proxy:$VERSION"

function start_container () {
CMD="docker run -d -p $PORT:8000 --env BASIC_AUTH_USERNAME=$1 --env BASIC_AUTH_PASSWORD=$2 --env PROXY_PASS_WEB=http://localhost --env PROXY_PASS_API=http://localhost --name $NAME airbyte/proxy:$VERSION"
CMD="docker run -d -p $PORT:8000 --env BASIC_AUTH_USERNAME=$1 --env BASIC_AUTH_PASSWORD=$2 --env PROXY_PASS_WEB=http://localhost --env PROXY_PASS_API=http://localhost --env CONNECTOR_BUILDER_SERVER_API=http://localhost --name $NAME airbyte/proxy:$VERSION"
echo $CMD
eval $CMD
wait_for_docker;
Expand Down
1 change: 0 additions & 1 deletion airbyte-webapp/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ REACT_APP_FULL_STORY_ORG=13AXQ4
REACT_APP_SENTRY_DSN=
REACT_APP_INTERCOM_APP_ID=nj1oam7s
REACT_APP_OSANO=16A0CTTE7vE8m1Qif/67beec9b-e563-4736-bdb4-4fe4adc39d48
REACT_APP_CONNECTOR_BUILDER_API=/connector-builder-api/
1 change: 1 addition & 0 deletions airbyte-webapp/nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ server {
window.TRACKING_STRATEGY = "$TRACKING_STRATEGY";
window.AIRBYTE_VERSION = "$AIRBYTE_VERSION";
window.API_URL = "$API_URL";
window.CONNECTOR_BUILDER_API_URL = "$CONNECTOR_BUILDER_API_URL";
</script>';
sub_filter_once on;
}
Expand Down
2 changes: 1 addition & 1 deletion airbyte-webapp/src/config/configProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const windowConfigProvider: ConfigProvider = async () => {
token: window.SEGMENT_TOKEN,
},
apiUrl: window.API_URL,
connectorBuilderApiUrl: window.CONNECTOR_BUILDER_API_URL,
version: window.AIRBYTE_VERSION,
// cloud only start
// TODO: remove when infra team supports proper webapp building
Expand All @@ -22,7 +23,6 @@ const windowConfigProvider: ConfigProvider = async () => {
const envConfigProvider: ConfigProvider = async () => {
return {
apiUrl: process.env.REACT_APP_API_URL,
connectorBuilderUrl: process.env.REACT_APP_CONNECTOR_BUILDER_API,
integrationUrl: process.env.REACT_APP_INTEGRATION_DOCS_URLS,
segment: {
token: process.env.REACT_APP_SEGMENT_TOKEN,
Expand Down
1 change: 1 addition & 0 deletions airbyte-webapp/src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ declare global {
TRACKING_STRATEGY?: string;
AIRBYTE_VERSION?: string;
API_URL?: string;
CONNECTOR_BUILDER_API_URL?: string;
CLOUD?: string;
REACT_APP_DATADOG_APPLICATION_ID: string;
REACT_APP_DATADOG_CLIENT_TOKEN: string;
Expand Down
2 changes: 2 additions & 0 deletions charts/airbyte-connector-builder-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Charts are downloaded at install time with `helm dep build`.
charts
6 changes: 6 additions & 0 deletions charts/airbyte-connector-builder-server/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 1.17.1
digest: sha256:dacc73770a5640c011e067ff8840ddf89631fc19016c8d0a9e5ea160e7da8690
generated: "2022-10-17T18:35:15.123937677Z"
31 changes: 31 additions & 0 deletions charts/airbyte-connector-builder-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: v2
name: connector-builder-server
description: Helm chart to deploy airbyte-connector-builder-server

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
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.40.46"

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.40.21"

dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
tags:
- bitnami-common
version: 1.x.x
79 changes: 79 additions & 0 deletions charts/airbyte-connector-builder-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# server

![Version: 0.39.36](https://img.shields.io/badge/Version-0.39.36-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.40.4](https://img.shields.io/badge/AppVersion-0.40.4-informational?style=flat-square)

Helm chart to deploy airbyte-server

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | common | 1.x.x |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| containerSecurityContext | object | `{}` | |
| enabled | bool | `true` | |
| env_vars | object | `{}` | |
| extraContainers | list | `[]` | |
| extraEnv | list | `[]` | |
| extraInitContainers | list | `[]` | |
| extraVolumeMounts | list | `[]` | |
| extraVolumes | list | `[]` | |
| global.configMapName | string | `""` | |
| global.credVolumeOverride | string | `""` | |
| global.database.host | string | `"example.com"` | |
| global.database.port | string | `"5432"` | |
| global.database.secretName | string | `""` | |
| global.database.secretValue | string | `""` | |
| global.deploymentMode | string | `"oss"` | |
| global.extraContainers | list | `[]` | |
| global.logs.accessKey.existingSecret | string | `""` | |
| global.logs.accessKey.existingSecretKey | string | `""` | |
| global.logs.accessKey.password | string | `"minio"` | |
| global.logs.externalMinio.enabled | bool | `false` | |
| global.logs.externalMinio.host | string | `"localhost"` | |
| global.logs.externalMinio.port | int | `9000` | |
| global.logs.gcs.bucket | string | `""` | |
| global.logs.gcs.credentials | string | `""` | |
| global.logs.gcs.credentialsJson | string | `""` | |
| global.logs.minio.enabled | bool | `true` | |
| global.logs.s3.bucket | string | `"airbyte-dev-logs"` | |
| global.logs.s3.bucketRegion | string | `""` | |
| global.logs.s3.enabled | bool | `false` | |
| global.logs.secretKey.existingSecret | string | `""` | |
| global.logs.secretKey.existingSecretKey | string | `""` | |
| global.logs.secretKey.password | string | `"minio123"` | |
| global.secretName | string | `""` | |
| global.serviceAccountName | string | `"placeholderServiceAccount"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"airbyte/server"` | |
| livenessProbe.enabled | bool | `true` | |
| livenessProbe.failureThreshold | int | `3` | |
| livenessProbe.initialDelaySeconds | int | `30` | |
| livenessProbe.periodSeconds | int | `10` | |
| livenessProbe.successThreshold | int | `1` | |
| livenessProbe.timeoutSeconds | int | `1` | |
| log.level | string | `"INFO"` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| readinessProbe.enabled | bool | `true` | |
| readinessProbe.failureThreshold | int | `3` | |
| readinessProbe.initialDelaySeconds | int | `10` | |
| readinessProbe.periodSeconds | int | `10` | |
| readinessProbe.successThreshold | int | `1` | |
| readinessProbe.timeoutSeconds | int | `1` | |
| replicaCount | int | `1` | |
| resources.limits | object | `{}` | |
| resources.requests | object | `{}` | |
| secrets | object | `{}` | |
| service.annotations | object | `{}` | |
| service.port | int | `8001` | |
| service.type | string | `"ClusterIP"` | |
| tolerations | list | `[]` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
73 changes: 73 additions & 0 deletions charts/airbyte-connector-builder-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "airbyte.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "airbyte.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "airbyte.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "airbyte.labels" -}}
helm.sh/chart: {{ include "airbyte.chart" . }}
{{ include "airbyte.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "airbyte.selectorLabels" -}}
app.kubernetes.io/name: {{ include "airbyte.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Define db secret
*/}}

{{- define "database.secret.name" -}}
{{- printf "%s-postgresql" .Release.Name }}
{{- end }}

{{/*
Define imageTag
*/}}

{{- define "connectorBuilderServer.imageTag" -}}
{{- if .Values.image.tag }}
{{- printf "%s" .Values.image.tag }}
{{- else if ((.Values.global.image).tag) }}
{{- printf "%s" .Values.global.image.tag }}
{{- else }}
{{- printf "%s" .Chart.AppVersion }}
{{- end }}
{{- end }}
Loading