From a5378ba6d0ea4b197c5e3b8354f34460e5d1fed1 Mon Sep 17 00:00:00 2001 From: Marc Campbell Date: Sun, 8 Sep 2019 20:39:07 +0000 Subject: [PATCH] kots install support for custom branding --- pkg/kotsadm/api.go | 3 +++ pkg/kotsadm/kotsadm.go | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/kotsadm/api.go b/pkg/kotsadm/api.go index 842b714593..483f930900 100644 --- a/pkg/kotsadm/api.go +++ b/pkg/kotsadm/api.go @@ -60,6 +60,9 @@ func waitForAPI(deployOptions *DeployOptions, clientset *kubernetes.Clientset) e } func ensureAPI(deployOptions *DeployOptions, clientset *kubernetes.Clientset) error { + if err := ensureApplicationMetadata(*deployOptions, clientset); err != nil { + return errors.Wrap(err, "failed to ensure custom branding") + } if err := ensureAPIDeployment(*deployOptions, clientset); err != nil { return errors.Wrap(err, "failed to ensure api deployment") } diff --git a/pkg/kotsadm/kotsadm.go b/pkg/kotsadm/kotsadm.go index 3ad071db08..e4bdac9234 100644 --- a/pkg/kotsadm/kotsadm.go +++ b/pkg/kotsadm/kotsadm.go @@ -140,7 +140,6 @@ func Deploy(deployOptions DeployOptions) error { return errors.Wrap(err, "failed to create namespace") } log.FinishChildSpinner() - } else if err != nil { return errors.Wrap(err, "failed to get namespace") }