Tweak CreateImagePullSecret
This commit is contained in:
parent
0f42346976
commit
020476614c
@ -95,9 +95,9 @@ func CreateImage(img string) CreateOption {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CreateImagePullSecret sets a secret to use
|
// CreateImagePullSecret sets a secret to use
|
||||||
func CreateImagePullSecret(secret string) CreateOption {
|
func CreateImagePullSecret(secrets ...string) CreateOption {
|
||||||
return func(o *CreateOptions) {
|
return func(o *CreateOptions) {
|
||||||
o.ImagePullSecrets = append(o.ImagePullSecrets, secret)
|
o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user