Skip to content

Commit

Permalink
feat: add mc image filed (#2033)
Browse files Browse the repository at this point in the history
add mc image filed
  • Loading branch information
jiuker authored Mar 15, 2024
1 parent f6bb695 commit def265b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
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

0 comments on commit def265b

Please sign in to comment.