Tweak CreateImagePullSecret

This commit is contained in:
Ben Toogood 2020-04-23 14:06:33 +01:00
parent 0f42346976
commit 020476614c

View File

@ -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...)
} }
} }