Skip to content

Commit e78c0b4

Browse files
CR-8129 installation on a different kube-context bug (#461)
* get kube server from chosen context instead of current * bump autopilot * bump version * bump
1 parent 042c33a commit e78c0b4

File tree

6 files changed

+102
-46
lines changed

6 files changed

+102
-46
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.0.409
1+
VERSION=v0.0.410
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/runtime.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,8 @@ func runtimeInstallPreparations(opts *RuntimeInstallOptions) (*runtime.Runtime,
900900
return nil, "", fmt.Errorf("failed to download runtime definition: %w", err)
901901
}
902902

903-
server, err := util.KubeCurrentServer(opts.kubeconfig)
904-
handleCliStep(reporter.InstallStepGetServerAddress, "Getting current server address", err, false, true)
903+
server, err := util.KubeServerByContextName(opts.kubeContext, opts.kubeconfig)
904+
handleCliStep(reporter.InstallStepGetServerAddress, "Getting kube server address", err, false, true)
905905
if err != nil {
906906
return nil, "", fmt.Errorf("failed to get current server address: %w", err)
907907
}

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cf version
2323

2424
```bash
2525
# download and extract the binary
26-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.409/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.410/cf-linux-amd64.tar.gz | tar zx
2727

2828
# move the binary to your $PATH
2929
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
3636

3737
```bash
3838
# download and extract the binary
39-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.409/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.410/cf-darwin-amd64.tar.gz | tar zx
4040

4141
# move the binary to your $PATH
4242
mv ./cf-darwin-amd64 /usr/local/bin/cf

go.mod

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ go 1.18
44

55
require (
66
github.com/Masterminds/semver/v3 v3.1.1
7-
github.com/argoproj-labs/argocd-autopilot v0.3.7
7+
github.com/argoproj-labs/argocd-autopilot v0.3.9
88
github.com/argoproj/applicationset v0.4.1
9-
github.com/argoproj/argo-cd/v2 v2.3.4
9+
github.com/argoproj/argo-cd/v2 v2.4.1
1010
github.com/argoproj/argo-events v0.17.1-0.20220327045437-70eaafe9afec
1111
github.com/argoproj/argo-workflows/v3 v3.3.1
1212
github.com/briandowns/spinner v1.18.1
@@ -52,6 +52,7 @@ require (
5252
github.com/Masterminds/semver v1.5.0 // indirect
5353
github.com/Masterminds/sprig v2.22.0+incompatible // indirect
5454
github.com/Microsoft/go-winio v0.4.17 // indirect
55+
github.com/PagerDuty/go-pagerduty v1.5.0 // indirect
5556
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
5657
github.com/PuerkitoBio/purell v1.1.1 // indirect
5758
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
@@ -61,8 +62,8 @@ require (
6162
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
6263
github.com/alicebob/miniredis/v2 v2.14.2 // indirect
6364
github.com/antonmedv/expr v1.9.0 // indirect
64-
github.com/argoproj/gitops-engine v0.6.2 // indirect
65-
github.com/argoproj/notifications-engine v0.3.1-0.20220322174744-ac18ca10234c // indirect
65+
github.com/argoproj/gitops-engine v0.7.0 // indirect
66+
github.com/argoproj/notifications-engine v0.3.1-0.20220430155844-567361917320 // indirect
6667
github.com/argoproj/pkg v0.11.1-0.20211203175135-36c59d8fafe0 // indirect
6768
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
6869
github.com/beorn7/perks v1.0.1 // indirect
@@ -90,7 +91,8 @@ require (
9091
github.com/fvbommel/sortorder v1.0.1 // indirect
9192
github.com/go-errors/errors v1.0.1 // indirect
9293
github.com/go-git/gcfg v1.5.0 // indirect
93-
github.com/go-logr/logr v1.2.2 // indirect
94+
github.com/go-logr/logr v1.2.3 // indirect
95+
github.com/go-logr/stdr v1.2.2 // indirect
9496
github.com/go-openapi/analysis v0.21.2 // indirect
9597
github.com/go-openapi/errors v0.20.2 // indirect
9698
github.com/go-openapi/jsonpointer v0.19.5 // indirect
@@ -205,8 +207,11 @@ require (
205207
github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
206208
github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect
207209
go.mongodb.org/mongo-driver v1.8.2 // indirect
210+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0 // indirect
211+
go.opentelemetry.io/otel v1.6.3 // indirect
212+
go.opentelemetry.io/otel/trace v1.6.3 // indirect
208213
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
209-
golang.org/x/crypto v0.0.0-20220307211146-efcb8507fb70 // indirect
214+
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
210215
golang.org/x/exp v0.0.0-20210901193431-a062eea981d2 // indirect
211216
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
212217
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a // indirect
@@ -219,7 +224,7 @@ require (
219224
google.golang.org/appengine v1.6.7 // indirect
220225
google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6 // indirect
221226
google.golang.org/grpc v1.45.0 // indirect
222-
google.golang.org/protobuf v1.27.1 // indirect
227+
google.golang.org/protobuf v1.28.0 // indirect
223228
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
224229
gopkg.in/go-playground/webhooks.v5 v5.17.0 // indirect
225230
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect
@@ -250,18 +255,15 @@ require (
250255
replace (
251256
// https://github.com/golang/go/issues/33546#issuecomment-519656923
252257
github.com/go-check/check => github.com/go-check/check v0.0.0-20180628173108-788fd7840127
258+
253259
github.com/golang/protobuf => github.com/golang/protobuf v1.4.2
254260
github.com/gorilla/websocket => github.com/gorilla/websocket v1.4.2
255261
github.com/grpc-ecosystem/grpc-gateway => github.com/grpc-ecosystem/grpc-gateway v1.16.0
256262
github.com/improbable-eng/grpc-web => github.com/improbable-eng/grpc-web v0.0.0-20181111100011-16092bd1d58a
257-
github.com/nats-io/nats-server => github.com/nats-io/nats-server/v2 v2.7.4
258-
github.com/nats-io/nats-server/v2 => github.com/nats-io/nats-server/v2 v2.7.4
259263

260264
// Security fixes
261265
github.com/rs/cors => github.com/rs/cors v1.8.2
262266

263-
google.golang.org/grpc => google.golang.org/grpc v1.15.0
264-
265267
// https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-505627280
266268
k8s.io/api => k8s.io/api v0.23.1
267269
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.23.1

0 commit comments

Comments
 (0)