From 020476614c3867715c38f571712d87c9553afdf8 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Thu, 23 Apr 2020 14:06:33 +0100 Subject: [PATCH] Tweak CreateImagePullSecret --- runtime/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/options.go b/runtime/options.go index 0c4589dd..07bf6039 100644 --- a/runtime/options.go +++ b/runtime/options.go @@ -95,9 +95,9 @@ func CreateImage(img string) CreateOption { } // CreateImagePullSecret sets a secret to use -func CreateImagePullSecret(secret string) CreateOption { +func CreateImagePullSecret(secrets ...string) CreateOption { return func(o *CreateOptions) { - o.ImagePullSecrets = append(o.ImagePullSecrets, secret) + o.ImagePullSecrets = append(o.ImagePullSecrets, secrets...) } }