diff --git a/charts/plane-enterprise/Chart.yaml b/charts/plane-enterprise/Chart.yaml index 15374ca9..c4986c39 100644 --- a/charts/plane-enterprise/Chart.yaml +++ b/charts/plane-enterprise/Chart.yaml @@ -5,7 +5,7 @@ description: Meet Plane. An Enterprise software development tool to manage issue type: application -version: 3.4.0 +version: 3.4.1 appVersion: "3.1.1" home: https://plane.so/ diff --git a/charts/plane-enterprise/README.md b/charts/plane-enterprise/README.md index 8b850d49..8dfa3fa5 100644 --- a/charts/plane-enterprise/README.md +++ b/charts/plane-enterprise/README.md @@ -538,6 +538,7 @@ securityContext: | services.minio.local_setup | true | | Plane uses `minio` as the default file storage drive. This storage can be hosted within kubernetes as part of helm chart deployment or can be used as hosted service remotely (e.g. aws S3 or similar services). Set this to `true` when you choose to setup stateful deployment of `minio`. Mark it as `false` when using a remotely hosted database | | services.minio.image | minio/minio:latest | | Using this key, user must provide the docker image name to setup the stateful deployment of `minio`. (must be set when `services.minio.local_setup=true`) | | services.minio.image_mc | minio/mc:latest | | Using this key, user must provide the docker image name to setup the job deployment of `minio client`. (must be set when `services.minio.local_setup=true`) | +| services.minio.init_image | busybox | | Using this key, user must provide the docker image name used by the init container of the `minio client` job, which waits for `minio` to become resolvable. (must be set when `services.minio.local_setup=true`) | | services.minio.pullPolicy | IfNotPresent | | Using this key, user can set the pull policy for the stateful deployment of `minio`. (must be set when `services.minio.local_setup=true`) | | services.minio.volumeSize | 3Gi | | While setting up the stateful deployment, while creating the persistant volume, volume allocation size need to be provided. This key helps you set the volume allocation size. Unit of this value must be in Mi (megabyte) or Gi (gigabyte) | | services.minio.root_user | admin | | Storage credentials are requried to access the hosted stateful deployment of `minio`. Use this key to set the username for the stateful deployment. | diff --git a/charts/plane-enterprise/questions.yml b/charts/plane-enterprise/questions.yml index df80c714..ef70725e 100644 --- a/charts/plane-enterprise/questions.yml +++ b/charts/plane-enterprise/questions.yml @@ -1598,6 +1598,11 @@ questions: type: string default: "minio/mc:latest" show_if: "services.minio.local_setup=true" + - variable: services.minio.init_image + label: "Init Docker Image" + type: string + default: "busybox" + show_if: "services.minio.local_setup=true" - variable: services.minio.root_user label: "Root User" type: string diff --git a/charts/plane-enterprise/templates/workloads/minio.stateful.yaml b/charts/plane-enterprise/templates/workloads/minio.stateful.yaml index 09a8c38b..7accc656 100644 --- a/charts/plane-enterprise/templates/workloads/minio.stateful.yaml +++ b/charts/plane-enterprise/templates/workloads/minio.stateful.yaml @@ -100,7 +100,7 @@ spec: restartPolicy: OnFailure initContainers: - name: init - image: busybox + image: {{ .Values.services.minio.init_image | default "busybox" }} command: ['sh', '-c', "until nslookup {{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc.{{ .Values.env.default_cluster_domain | default "cluster.local" }}; do echo waiting for {{ .Release.Name }}-minio; sleep 2; done"] containers: - name: {{ .Release.Name }}-minio-bucket @@ -111,7 +111,7 @@ spec: args: - '-c' - >- - /usr/bin/mc config host add plane-app-minio + /usr/bin/mc alias set plane-app-minio http://{{ .Release.Name }}-minio.{{ .Release.Namespace }}.svc.{{ .Values.env.default_cluster_domain | default "cluster.local" }}:9000 "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY"; /usr/bin/mc mb plane-app-minio/$AWS_S3_BUCKET_NAME; /usr/bin/mc anonymous set download plane-app-minio/$AWS_S3_BUCKET_NAME; exit 0; diff --git a/charts/plane-enterprise/values.yaml b/charts/plane-enterprise/values.yaml index 779d6d67..29b2cf80 100644 --- a/charts/plane-enterprise/values.yaml +++ b/charts/plane-enterprise/values.yaml @@ -198,6 +198,7 @@ services: local_setup: true image: minio/minio:latest image_mc: minio/mc:latest + init_image: busybox volumeSize: 3Gi pullPolicy: IfNotPresent root_user: admin