diff --git a/Makefile b/Makefile index 923ff68a..a3e8a8f0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=v0.1.17 +VERSION=v0.1.18 OUT_DIR=dist YEAR?=$(shell date +"%Y") diff --git a/cmd/commands/common.go b/cmd/commands/common.go index 892ec2b1..707abc15 100644 --- a/cmd/commands/common.go +++ b/cmd/commands/common.go @@ -563,16 +563,18 @@ func setIngressHost(ctx context.Context, opts *RuntimeInstallOptions) error { return fmt.Errorf("failed to get ingress controller info from your cluster: %w", err) } - for _, s := range servicesList.Items { - if s.ObjectMeta.Name == opts.IngressController.Name() && s.Spec.Type == "LoadBalancer" { - if len(s.Status.LoadBalancer.Ingress) > 0 { - ingress := s.Status.LoadBalancer.Ingress[0] - if ingress.Hostname != "" { - foundHostName = ingress.Hostname - break - } else { - foundHostName = ingress.IP - break + if opts.IngressController != nil { + for _, s := range servicesList.Items { + if s.ObjectMeta.Name == opts.IngressController.Name() && s.Spec.Type == "LoadBalancer" { + if len(s.Status.LoadBalancer.Ingress) > 0 { + ingress := s.Status.LoadBalancer.Ingress[0] + if ingress.Hostname != "" { + foundHostName = ingress.Hostname + break + } else { + foundHostName = ingress.IP + break + } } } } diff --git a/docs/releases/release_notes.md b/docs/releases/release_notes.md index 9538d1d4..1a984b2e 100644 --- a/docs/releases/release_notes.md +++ b/docs/releases/release_notes.md @@ -23,7 +23,7 @@ cf version ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.17/cf-linux-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.18/cf-linux-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./cf-linux-amd64 /usr/local/bin/cf @@ -36,7 +36,7 @@ cf version ```bash # download and extract the binary -curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.17/cf-darwin-amd64.tar.gz | tar zx +curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.18/cf-darwin-amd64.tar.gz | tar zx # move the binary to your $PATH mv ./cf-darwin-amd64 /usr/local/bin/cf