Skip to content

Commit

Permalink
Merge pull request #77 from heka-ai/main
Browse files Browse the repository at this point in the history
Fix api-deployment template, references to s3.aws from values and add minio tar.gz file
  • Loading branch information
electrosenpai authored Oct 11, 2024
2 parents b185608 + e6e0a2f commit 5af7bbd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 22 deletions.
Binary file added charts/minio-5.2.0.tgz
Binary file not shown.
9 changes: 0 additions & 9 deletions requirements.lock

This file was deleted.

6 changes: 3 additions & 3 deletions templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ spec:
{{ end }}
- name: LAGO_AWS_S3_REGION
value: {{ if .Values.global.s3.enabled }}
{{ .Values.global.s3.aws.region | quote }}
{{ .Values.global.s3.region | quote }}
{{ else if .Values.minio.enabled }}
{{ default "us-east-1" .Values.minio.region | quote }}
{{ end }}
Expand Down Expand Up @@ -251,13 +251,13 @@ spec:
resources:
{{- toYaml . | nindent 12}}
{{- end }}
{{- if and (not .Values.global.s3.enabled) (not .Values.minio.enabled) -}}
{{- if and (not .Values.global.s3.enabled) (not .Values.minio.enabled) }}
volumeMounts:
- mountPath: /app/storage
name: {{ .Release.Name }}-storage-data
{{ end }}
restartPolicy: Always
{{- if and (not .Values.global.s3.enabled) (not .Values.minio.enabled) -}}
{{- if and (not .Values.global.s3.enabled) (not .Values.minio.enabled) }}
volumes:
- name: {{ .Release.Name }}-storage-data
persistentVolumeClaim:
Expand Down
8 changes: 4 additions & 4 deletions templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ data:

{{- if not .Values.global.existingSecret }}
{{ if .Values.global.s3.enabled }}
{{ if .Values.global.s3.aws.accessKeyId }}
awsS3AccessKeyId: {{ .Values.global.s3.aws.accessKeyId | b64enc }}
{{ if .Values.global.s3.accessKeyId }}
awsS3AccessKeyId: {{ .Values.global.s3.accessKeyId | b64enc }}
{{ end }}
{{ if .Values.global.s3.aws.secretAccessKey }}
awsS3SecretAccessKey: {{ .Values.global.s3.aws.secretAccessKey | b64enc }}
{{ if .Values.global.s3.secretAccessKey }}
awsS3SecretAccessKey: {{ .Values.global.s3.secretAccessKey | b64enc }}
{{ end }}
{{ if eq .Values.global.s3.provider "minio" }}
{{ if .Values.global.s3.minio.accessKeyId }}
Expand Down
12 changes: 6 additions & 6 deletions templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,28 +119,28 @@ spec:
{{ if .Values.global.s3.enabled }}
- name: LAGO_USE_AWS_S3
value: "true"
{{ if .Values.global.s3.aws.endpoint }}
{{ if .Values.global.s3.endpoint }}
- name: LAGO_AWS_S3_ENDPOINT
value: {{ .Values.global.s3.aws.endpoint | quote }}
value: {{ .Values.global.s3.endpoint | quote }}
{{ end }}
{{ if or .Values.global.s3.aws.accessKeyId .Values.global.existingSecret }}
{{ if or .Values.global.s3.accessKeyId .Values.global.existingSecret }}
- name: LAGO_AWS_S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: {{ include "secret-path" . }}
key: awsS3AccessKeyId
{{ end }}
{{ if or .Values.global.s3.aws.secretAccessKey .Values.global.existingSecret }}
{{ if or .Values.global.s3.secretAccessKey .Values.global.existingSecret }}
- name: LAGO_AWS_S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{ include "secret-path" . }}
key: awsS3SecretAccessKey
{{ end }}
- name: LAGO_AWS_S3_BUCKET
value: {{ .Values.global.s3.aws.bucket | quote }}
value: {{ .Values.global.s3.bucket | quote }}
- name: LAGO_AWS_S3_REGION
value: {{ .Values.global.s3.aws.region | quote }}
value: {{ .Values.global.s3.region | quote }}
{{ end }}
{{ if .Values.global.smtp.enabled }}
- name: LAGO_FROM_EMAIL
Expand Down

0 comments on commit 5af7bbd

Please sign in to comment.