From 96633039940303229529daa2058fe6fcfbd4f4c1 Mon Sep 17 00:00:00 2001 From: Thomas Risberg Date: Thu, 9 Aug 2018 17:05:02 -0400 Subject: [PATCH] Split Istio install into crds and main file and wait 5s between (#663) - make 'components' lowercase in all messages for consistency --- pkg/core/system.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/core/system.go b/pkg/core/system.go index e29148b1b..649e5e0b5 100644 --- a/pkg/core/system.go +++ b/pkg/core/system.go @@ -32,7 +32,8 @@ import ( const ( istioNamespace = "istio-system" - istioRelease = "https://storage.googleapis.com/riff-releases/istio/istio-1.0.0-riff.yaml" + istioCrds = "https://storage.googleapis.com/riff-releases/istio/istio-1.0.0-riff-crds.yaml" + istioRelease = "https://storage.googleapis.com/riff-releases/istio/istio-1.0.0-riff-main.yaml" servingRelease = "https://storage.googleapis.com/knative-releases/serving/previous/v20180809-6b01d8e/release-no-mon.yaml" eventingRelease = "https://storage.googleapis.com/knative-releases/eventing/previous/v20180809-34ab480/release.yaml" stubBusRelease = "https://storage.googleapis.com/knative-releases/eventing/previous/v20180809-34ab480/release-clusterbus-stub.yaml" @@ -62,7 +63,9 @@ func (kc *kubectlClient) SystemInstall(options SystemInstallOptions) (bool, erro istioStatus, err := getNamespaceStatus(kc,istioNamespace) if istioStatus == "'NotFound'" { - fmt.Print("Installing Istio Components\n") + fmt.Print("Installing Istio components\n") + applyResources(kc, istioCrds) + time.Sleep(5 * time.Second) // wait for them to get created istioYaml, err := loadRelease(istioRelease) if err != nil { return false, err @@ -95,7 +98,7 @@ func (kc *kubectlClient) SystemInstall(options SystemInstallOptions) (bool, erro return false, err } - fmt.Print("Installing Knative Components\n") + fmt.Print("Installing Knative components\n") servingYaml, err := loadRelease(servingRelease) if err != nil {