Repository: minio/minio (language: go)

Issue:
Minio helm chart: Post Job fails when not running as root and tls enabled
When enabling the security contexts for the post run jobs and enabling tls, the jobs fail because it can not safe the configuration.

The issue is quite similar to #16758
It seams like the fix for the above issue intoduced with #17160 and #17148 is not working when tls is enabled.
When tls is enabled the needed certs are mounted to `/etc/minio/mc/certs`, because of this the folder mc is not writeable anymore for the non root user.  

## Expected Behavior
Job should finish

## Current Behavior
Job fails

## Possible Solution
Mount the emptyDir at `/etc/minio/mc` instead of `/etc/minio`

## Your Environment
Minio Helm Chart from Master


Discussion / hints:

Fix patch:
diff --git a/helm/minio/templates/post-job.yaml b/helm/minio/templates/post-job.yaml
index 3868c891e7af5..b6a5e18dd040f 100644
--- a/helm/minio/templates/post-job.yaml
+++ b/helm/minio/templates/post-job.yaml
@@ -108,7 +108,7 @@ spec:
               value: {{ .Values.service.port | quote }}
           volumeMounts:
             - name: etc-path
-              mountPath: /etc/minio
+              mountPath: /etc/minio/mc
             - name: tmp
               mountPath: /tmp
             - name: minio-configuration
@@ -141,7 +141,7 @@ spec:
               value: {{ .Values.service.port | quote }}
           volumeMounts:
             - name: etc-path
-              mountPath: /etc/minio
+              mountPath: /etc/minio/mc
             - name: tmp
               mountPath: /tmp
             - name: minio-configuration
@@ -174,7 +174,7 @@ spec:
               value: {{ .Values.service.port | quote }}
           volumeMounts:
             - name: etc-path
-              mountPath: /etc/minio
+              mountPath: /etc/minio/mc
             - name: tmp
               mountPath: /tmp
             - name: minio-configuration
@@ -207,7 +207,7 @@ spec:
               value: {{ .Values.service.port | quote }}
           volumeMounts:
             - name: etc-path
-              mountPath: /etc/minio
+              mountPath: /etc/minio/mc
             - name: tmp
               mountPath: /tmp
             - name: minio-configuration
@@ -240,7 +240,7 @@ spec:
               value: {{ .Values.service.port | quote }}
           volumeMounts:
             - name: etc-path
-              mountPath: /etc/minio
+              mountPath: /etc/minio/mc
             - name: tmp
               mountPath: /tmp
             - name: minio-configuration


Test patch: