Skip to content

Commit

Permalink
PE-2443: adding image pull secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
  • Loading branch information
Dr-N00B authored and brandond committed Nov 27, 2023
1 parent a70667b commit af37360
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/apis/upgrade.cattle.io/v1/types.go
Expand Up @@ -46,10 +46,11 @@ type PlanSpec struct {

Exclusive bool `json:"exclusive,omitempty"`

Prepare *ContainerSpec `json:"prepare,omitempty"`
Cordon bool `json:"cordon,omitempty"`
Drain *DrainSpec `json:"drain,omitempty"`
Upgrade *ContainerSpec `json:"upgrade,omitempty" wrangler:"required"`
Prepare *ContainerSpec `json:"prepare,omitempty"`
Cordon bool `json:"cordon,omitempty"`
Drain *DrainSpec `json:"drain,omitempty"`
Upgrade *ContainerSpec `json:"upgrade,omitempty" wrangler:"required"`
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
}

// PlanStatus represents the resulting state from processing Plan events.
Expand Down
1 change: 1 addition & 0 deletions pkg/upgrade/job/job.go
Expand Up @@ -215,6 +215,7 @@ func New(plan *upgradeapiv1.Plan, node *corev1.Node, controllerName string) *bat
},
},
}},
ImagePullSecrets: plan.Spec.ImagePullSecrets,
},
},
Completions: new(int32),
Expand Down

0 comments on commit af37360

Please sign in to comment.