diff --git a/helm/operator/templates/job.min.io_jobs.yaml b/helm/operator/templates/job.min.io_jobs.yaml index 9f30ffe3723..806f496731a 100644 --- a/helm/operator/templates/job.min.io_jobs.yaml +++ b/helm/operator/templates/job.min.io_jobs.yaml @@ -66,6 +66,9 @@ spec: - continueOnFailure - stopOnFailure type: string + mcImage: + default: minio/mc:latest + type: string serviceAccountName: type: string tenant: diff --git a/pkg/apis/job.min.io/v1alpha1/types.go b/pkg/apis/job.min.io/v1alpha1/types.go index b2be66de756..150d26ae9dc 100644 --- a/pkg/apis/job.min.io/v1alpha1/types.go +++ b/pkg/apis/job.min.io/v1alpha1/types.go @@ -91,6 +91,11 @@ type MinIOJobSpec struct { // // Commands List of MinioClient commands Commands []CommandSpec `json:"commands"` + + // mc job image + // +optional + // +kubebuilder:default="minio/mc:latest" + MCImage string `json:"mcImage,omitempty"` } // CommandSpec (`spec`) defines the configuration of a MinioClient Command. diff --git a/resources/base/crds/job.min.io_miniojobs.yaml b/resources/base/crds/job.min.io_miniojobs.yaml index 9f30ffe3723..806f496731a 100644 --- a/resources/base/crds/job.min.io_miniojobs.yaml +++ b/resources/base/crds/job.min.io_miniojobs.yaml @@ -66,6 +66,9 @@ spec: - continueOnFailure - stopOnFailure type: string + mcImage: + default: minio/mc:latest + type: string serviceAccountName: type: string tenant: