Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
Split Istio install into crds and main file and wait 5s between (#663)
Browse files Browse the repository at this point in the history
- make 'components' lowercase in all messages for consistency
  • Loading branch information
trisberg authored and scothis committed Aug 9, 2018
1 parent 5be7295 commit 9663303
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/core/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9663303

Please sign in to comment.