Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mc image filed #2033

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions helm/operator/templates/job.min.io_jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ spec:
- continueOnFailure
- stopOnFailure
type: string
mcImage:
default: minio/mc:latest
type: string
serviceAccountName:
type: string
tenant:
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/job.min.io/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions resources/base/crds/job.min.io_miniojobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ spec:
- continueOnFailure
- stopOnFailure
type: string
mcImage:
default: minio/mc:latest
type: string
serviceAccountName:
type: string
tenant:
Expand Down
Loading