diff --git a/charts/hatchet-api/Chart.yaml b/charts/hatchet-api/Chart.yaml index 7993f3c..d72a868 100644 --- a/charts/hatchet-api/Chart.yaml +++ b/charts/hatchet-api/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: hatchet-api description: A Helm chart for deploying Hatchet API components on Kubernetes. type: application -version: 0.6.0 +version: 0.6.1 maintainers: - name: Hatchet Engineering email: alexander@hatchet.run diff --git a/charts/hatchet-api/templates/setup-job.yaml b/charts/hatchet-api/templates/setup-job.yaml index 6242f52..b508a08 100644 --- a/charts/hatchet-api/templates/setup-job.yaml +++ b/charts/hatchet-api/templates/setup-job.yaml @@ -94,7 +94,7 @@ spec: image: "{{ .Values.setupJob.image.repository }}:{{ required "Please set a value for .Values.image.tag" .Values.setupJob.image.tag }}" imagePullPolicy: Always # this command requires read-write access on the hatchet-config configmap - command: ["/hatchet/hatchet-admin", "k8s", "quickstart", "--namespace", "{{ .Release.Namespace }}"] + command: ["/hatchet/hatchet-admin", "k8s", "quickstart", "--namespace", "{{ .Release.Namespace }}", "--overwrite=false"] securityContext: capabilities: add: @@ -106,6 +106,43 @@ spec: {{- end }} envFrom: {{ toYaml .Values.envFrom | indent 10 }} +{{- with .Values.extraContainers }} +{{ toYaml . | indent 8 }} +{{- end }} +--- +apiVersion: batch/v1 +kind: Job +metadata: + name: "{{ .Release.Name | trunc 20 }}-{{ randAlphaNum 10 | lower }}-worker-token" + labels: +{{- include "hatchet.labels" . | nindent 4 }} +spec: + backoffLimit: 1 + activeDeadlineSeconds: 300 + template: + metadata: + name: {{ template "hatchet.fullname" . }}-migration + labels: +{{- include "hatchet.labels" . | nindent 8 }} + spec: + restartPolicy: Never + shareProcessNamespace: true + serviceAccountName: {{ template "hatchet.serviceAccountName" . }} + {{- if .Values.priorityClassName }} + priorityClassName: "{{ .Values.priorityClassName }}" + {{- end }} + initContainers: + - name: check-db-connection + image: postgres:latest + command: ['sh', '-c', 'until pg_isready -d $DATABASE_URL; do echo waiting for database; sleep 2; done;'] + env: + {{- range $key, $value := .Values.env }} + - name: "{{ $key }}" + value: "{{ $value }}" + {{- end }} + envFrom: +{{ toYaml .Values.envFrom | indent 10 }} + containers: - name: setup-worker-token image: "{{ .Values.setupJob.image.repository }}:{{ required "Please set a value for .Values.image.tag" .Values.setupJob.image.tag }}" imagePullPolicy: Always diff --git a/charts/hatchet-stack/Chart.lock b/charts/hatchet-stack/Chart.lock index 7d4b281..6f9e82d 100644 --- a/charts/hatchet-stack/Chart.lock +++ b/charts/hatchet-stack/Chart.lock @@ -1,10 +1,10 @@ dependencies: - name: hatchet-api repository: file://../hatchet-api - version: 0.6.0 + version: 0.6.1 - name: hatchet-api repository: file://../hatchet-api - version: 0.6.0 + version: 0.6.1 - name: hatchet-frontend repository: file://../hatchet-frontend version: 0.6.0 @@ -14,5 +14,5 @@ dependencies: - name: rabbitmq repository: https://charts.bitnami.com/bitnami version: 12.15.0 -digest: sha256:9a33ce0d42d2ee3ea4d6205e51cf7f06ba2192a4250fd2739a04b85db5a3f8d9 -generated: "2024-08-22T17:26:47.846473-04:00" +digest: sha256:55f10a3553260c0843121428f683b8d8f27e067c9560a27bc481e9dca7d9086e +generated: "2024-08-22T20:18:09.230502-04:00" diff --git a/charts/hatchet-stack/Chart.yaml b/charts/hatchet-stack/Chart.yaml index 7aa4e80..da3ad8c 100644 --- a/charts/hatchet-stack/Chart.yaml +++ b/charts/hatchet-stack/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: hatchet-stack description: A Helm chart for deploying Hatchet on Kubernetes together with a PostgreSQL database and RabbitMQ. type: application -version: 0.6.0 +version: 0.6.1 maintainers: - name: Hatchet Engineering email: alexander@hatchet.run @@ -10,12 +10,12 @@ dependencies: - name: "hatchet-api" condition: api.enabled repository: "file://../hatchet-api" - version: "^0.6.0" + version: "^0.6.1" alias: api - name: "hatchet-api" condition: engine.enabled repository: "file://../hatchet-api" - version: "^0.6.0" + version: "^0.6.1" alias: engine - name: "hatchet-frontend" condition: frontend.enabled