From 2ba31162543cb03a362e1235452b6716af193468 Mon Sep 17 00:00:00 2001 From: akshay Date: Wed, 22 Jan 2020 23:04:12 -0800 Subject: [PATCH] Update create secret in service so registry creds add on does not fail when a secret does not exist. --- pkg/minikube/service/service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/minikube/service/service.go b/pkg/minikube/service/service.go index b26fa0d6d020..7f6c64663ffd 100644 --- a/pkg/minikube/service/service.go +++ b/pkg/minikube/service/service.go @@ -331,10 +331,11 @@ func CreateSecret(namespace, name string, dataValues map[string]string, labels m if err != nil { return &retry.RetriableError{Err: err} } + secrets := client.Secrets(namespace) secret, err := secrets.Get(name, meta.GetOptions{}) if err != nil { - return &retry.RetriableError{Err: err} + glog.Infof("Failed to retrieve existing secret: %v", err) } // Delete existing secret