diff --git a/.gitignore b/.gitignore index 1e1c59cdfa8..11f6a880ff2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,7 @@ nancy examples/.DS_Store testing/openshift/bundle/* examples/**/obj/ -.idea \ No newline at end of file +.idea +public.crt +go_build_operator_ +operator.iml diff --git a/pkg/resources/statefulsets/minio-statefulset.go b/pkg/resources/statefulsets/minio-statefulset.go index a563708dbc1..1a17c018ca0 100644 --- a/pkg/resources/statefulsets/minio-statefulset.go +++ b/pkg/resources/statefulsets/minio-statefulset.go @@ -476,7 +476,6 @@ func NewPool(args *NewPoolArgs) *appsv1.StatefulSet { serviceName := args.ServiceName hostsTemplate := args.HostsTemplate operatorVersion := args.OperatorVersion - operatorCATLS := args.OperatorCATLS operatorImage := args.OperatorImage var podVolumes []corev1.Volume @@ -673,22 +672,6 @@ func NewPool(args *NewPoolArgs) *appsv1.StatefulSet { }) } - if operatorCATLS { - // Mount Operator CA TLS certificate to MinIO ~/cert/CAs - operatorCATLSSecretName := "operator-ca-tls" - certVolumeSources = append(certVolumeSources, []corev1.VolumeProjection{ - { - Secret: &corev1.SecretProjection{ - LocalObjectReference: corev1.LocalObjectReference{ - Name: operatorCATLSSecretName, - }, - Items: []corev1.KeyToPath{ - {Key: "public.crt", Path: "CAs/operator-ca.crt"}, - }, - }, - }, - }...) - } // If KES is enable mount TLS certificate secrets if t.HasKESEnabled() { // External Client certificates will have priority over AutoCert generated certificates