From def265ba982aa0305ef39831da7df8d555f98b9b Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Fri, 15 Mar 2024 21:16:56 +0800 Subject: [PATCH] feat: add mc image filed (#2033) add mc image filed --- helm/operator/templates/job.min.io_jobs.yaml | 3 +++ pkg/apis/job.min.io/v1alpha1/types.go | 5 +++++ resources/base/crds/job.min.io_miniojobs.yaml | 3 +++ 3 files changed, 11 insertions(+) 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: