Add fixes on apply_workloads for kustomize path 46/1546/1
authorYolanda Robla <yroblamo@redhat.com>
Fri, 6 Sep 2019 10:32:06 +0000 (12:32 +0200)
committerYolanda Robla <yroblamo@redhat.com>
Fri, 6 Sep 2019 10:32:39 +0000 (12:32 +0200)
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I0c5f5d42448afa5e5d70de4ede2ccfab33109afa

cmd/apply_workloads.go

index ed27971..6ed93a7 100644 (file)
@@ -48,7 +48,7 @@ var applyWorkloadsCmd = &cobra.Command{
                kubeconfig, _ := cmd.Flags().GetString("kubeconfig")
                if len(kubeconfig) == 0 {
                        // set to default value
-                       kubeconfig = fmt.Sprintf("%s/final_manifests/auth/kubeconfig", buildPath)
+                       kubeconfig = fmt.Sprintf("%s/%s/final_manifests/auth/kubeconfig", buildPath, siteName)
                } else if kubeconfig == "local" {
                        kubeconfig = ""
                }