Skip to content

Commit

Permalink
minio/charts: fix installations without logsearch (truenas#2296)
Browse files Browse the repository at this point in the history
* minio/charts: fix installations without logsearch

* fix ci-only case
  • Loading branch information
stavros-k authored Mar 20, 2024
1 parent 8537145 commit f0fe0eb
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library/ix-dev/charts/minio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
annotations:
title: MinIO
type: application
version: 2.0.1
version: 2.0.2
apiVersion: v2
appVersion: "2023-03-13"
kubeVersion: ">=1.16.0-0"
Expand Down
22 changes: 22 additions & 0 deletions library/ix-dev/charts/minio/ci/no-logsearch-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
minioConfig:
rootUser: super-admin
rootPassword: super-admin-password

minioNetwork:
apiPort: 31000
consolePort: 31001

minioStorage:
export:
type: pvc
logSearchApi: false
pgData:
type: emptyDir
emptyDirConfig:
medium: ""
size: ""
pgBackup:
type: emptyDir
emptyDirConfig:
medium: ""
size: ""
2 changes: 2 additions & 0 deletions library/ix-dev/charts/minio/templates/_minio.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ workload:
"GID" 473
"mode" "check"
"type" "init") | nindent 8 }}
{{- if .Values.minioStorage.logSearchApi }}
wait-api:
enabled: true
type: init
Expand All @@ -90,4 +91,5 @@ workload:
sleep 2;
done
echo "API is up: {{ $logapi }}";
{{- end }}
{{- end -}}

0 comments on commit f0fe0eb

Please sign in to comment.