-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apparently the forked chart still had hooks for the service account (to support adding the bootloader as a hook). This has likely been the root cause of a lot of dumb bugs with service account access tokens, and ditching it is a good idea.
- Loading branch information
1 parent
0d5dd4b
commit 4b46a3d
Showing
3 changed files
with
54 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,58 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
kind: Job | ||
metadata: | ||
name: airbyte-bootloader-{{ randAlphaNum 6 | lower }} | ||
name: airbyte-bootloader-{{ .Values.bootloader.image.tag | sha256sum | trunc 8 }} | ||
labels: | ||
{{ include "airbyte-plural.labels" . | nindent 4 }} | ||
spec: | ||
serviceAccountName: airbyte-admin | ||
restartPolicy: Never | ||
initContainers: | ||
- name: wait-for-pg | ||
image: gcr.io/pluralsh/busybox:latest | ||
imagePullPolicy: IfNotPresent | ||
command: [ "/bin/sh", "-c", "until nc -zv $DATABASE_HOST 5432 -w1; do echo 'waiting for db'; sleep 1; done" ] | ||
env: | ||
- name: DATABASE_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_HOST | ||
containers: | ||
- name: airbyte-bootloader-container | ||
image: {{ printf "%s:%s" .Values.bootloader.image.repository .Values.bootloader.image.tag }} | ||
imagePullPolicy: IfNotPresent | ||
env: | ||
- name: AIRBYTE_VERSION | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: AIRBYTE_VERSION | ||
- name: DATABASE_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_HOST | ||
- name: DATABASE_PORT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_PORT | ||
- name: DATABASE_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.global.database.secretName }} | ||
key: {{ .Values.global.database.secretValue }} | ||
- name: DATABASE_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_URL | ||
- name: DATABASE_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: airbyte-airbyte-secrets | ||
key: DATABASE_USER | ||
backoffLimit: 2 | ||
template: | ||
spec: | ||
serviceAccountName: airbyte-admin | ||
restartPolicy: Never | ||
initContainers: | ||
- name: wait-for-pg | ||
image: gcr.io/pluralsh/busybox:latest | ||
imagePullPolicy: IfNotPresent | ||
command: [ "/bin/sh", "-c", "until nc -zv $DATABASE_HOST 5432 -w1; do echo 'waiting for db'; sleep 1; done" ] | ||
env: | ||
- name: DATABASE_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_HOST | ||
containers: | ||
- name: airbyte-bootloader-container | ||
image: {{ printf "%s:%s" .Values.bootloader.image.repository .Values.bootloader.image.tag }} | ||
imagePullPolicy: IfNotPresent | ||
env: | ||
- name: AIRBYTE_VERSION | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: AIRBYTE_VERSION | ||
- name: DATABASE_HOST | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_HOST | ||
- name: DATABASE_PORT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_PORT | ||
- name: DATABASE_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.global.database.secretName }} | ||
key: {{ .Values.global.database.secretValue }} | ||
- name: DATABASE_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
name: airbyte-airbyte-env | ||
key: DATABASE_URL | ||
- name: DATABASE_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: airbyte-airbyte-secrets | ||
key: DATABASE_USER |