Forráskód Böngészése

minio/charts: fix installations without logsearch (#2296)

* minio/charts: fix installations without logsearch

* fix ci-only case
Stavros Kois 1 éve
szülő
commit
f0fe0eb64c

+ 1 - 1
library/ix-dev/charts/minio/Chart.yaml

@@ -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"

+ 22 - 0
library/ix-dev/charts/minio/ci/no-logsearch-values.yaml

@@ -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 - 0
library/ix-dev/charts/minio/templates/_minio.tpl

@@ -74,6 +74,7 @@ workload:
                                                         "GID" 473
                                                         "mode" "check"
                                                         "type" "init") | nindent 8 }}
+      {{- if .Values.minioStorage.logSearchApi }}
         wait-api:
           enabled: true
           type: init
@@ -90,4 +91,5 @@ workload:
                 sleep 2;
               done
               echo "API is up: {{ $logapi }}";
+      {{- end }}
 {{- end -}}