Skip to content

Commit af37360

Browse files
Dr-N00Bbrandond
authored andcommitted
PE-2443: adding image pull secrets
Signed-off-by: Arun Sharma <[email protected]>
1 parent a70667b commit af37360

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pkg/apis/upgrade.cattle.io/v1/types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ type PlanSpec struct {
4646

4747
Exclusive bool `json:"exclusive,omitempty"`
4848

49-
Prepare *ContainerSpec `json:"prepare,omitempty"`
50-
Cordon bool `json:"cordon,omitempty"`
51-
Drain *DrainSpec `json:"drain,omitempty"`
52-
Upgrade *ContainerSpec `json:"upgrade,omitempty" wrangler:"required"`
49+
Prepare *ContainerSpec `json:"prepare,omitempty"`
50+
Cordon bool `json:"cordon,omitempty"`
51+
Drain *DrainSpec `json:"drain,omitempty"`
52+
Upgrade *ContainerSpec `json:"upgrade,omitempty" wrangler:"required"`
53+
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
5354
}
5455

5556
// PlanStatus represents the resulting state from processing Plan events.

pkg/upgrade/job/job.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ func New(plan *upgradeapiv1.Plan, node *corev1.Node, controllerName string) *bat
215215
},
216216
},
217217
}},
218+
ImagePullSecrets: plan.Spec.ImagePullSecrets,
218219
},
219220
},
220221
Completions: new(int32),

0 commit comments

Comments
 (0)