Skip to content

Commit a43a1cc

Browse files
CR-6004 (#59)
* Wip * updated go-sdk dependency to 0.31.0 * ran mod tidy * fixed build errors * removed "todo" from comment. still have to do it later! Co-authored-by: Noam Gal <noam.gal@codefresh.io>
1 parent 2f35dad commit a43a1cc

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
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.62
1+
VERSION=v0.0.63
22
OUT_DIR=dist
33
YEAR?=$(shell date +"%Y")
44

cmd/commands/runtime.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,24 +291,25 @@ func RunRuntimeList() error {
291291
name := "N/A"
292292
version := "N/A"
293293

294-
if rt.HealthMessage != nil {
295-
status = *rt.HealthMessage
294+
// make sure the go-sdk is returning the "self" reference
295+
if rt.Self != nil && rt.Self.HealthMessage != nil {
296+
status = *rt.Self.HealthMessage
296297
}
297298

298299
if rt.Metadata.Namespace != "" {
299300
namespace = rt.Metadata.Namespace
300301
}
301302

302-
if rt.Cluster != "" {
303-
cluster = rt.Cluster
303+
if rt.Cluster != nil {
304+
cluster = *rt.Cluster
304305
}
305306

306307
if rt.Metadata.Name != "" {
307308
name = rt.Metadata.Name
308309
}
309310

310-
if rt.RuntimeVersion != "" {
311-
version = rt.RuntimeVersion
311+
if rt.RuntimeVersion != nil {
312+
version = *rt.RuntimeVersion
312313
}
313314

314315
_, err = fmt.Fprintf(tb, "%s\t%s\t%s\t%s\t%s\n",

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ cf version
2020
### Linux
2121
```bash
2222
# download and extract the binary
23-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.62/cf-linux-amd64.tar.gz | tar zx
23+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.63/cf-linux-amd64.tar.gz | tar zx
2424

2525
# move the binary to your $PATH
2626
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -32,7 +32,7 @@ cf version
3232
### Mac
3333
```bash
3434
# download and extract the binary
35-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.62/cf-darwin-amd64.tar.gz | tar zx
35+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.63/cf-darwin-amd64.tar.gz | tar zx
3636

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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/argoproj/argo-events v1.3.1
1111
github.com/argoproj/argo-workflows/v3 v3.1.0
1212
github.com/briandowns/spinner v1.16.0
13-
github.com/codefresh-io/go-sdk v0.30.2
13+
github.com/codefresh-io/go-sdk v0.31.0
1414
github.com/fatih/color v1.12.0
1515
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
1616
github.com/go-git/go-billy/v5 v5.3.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGX
269269
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
270270
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
271271
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
272-
github.com/codefresh-io/go-sdk v0.30.2 h1:NbWph0RUsE9R6Iesm+pvB+5ODuFCGyofbSTrbfx3w4o=
273-
github.com/codefresh-io/go-sdk v0.30.2/go.mod h1:CcoVmTFWHGkbrSW8LyOGB/vJe5Vzr3iC/pNE2QIBTyg=
272+
github.com/codefresh-io/go-sdk v0.31.0 h1:F3RAfc3O8fgEasvc0bNtpFUOP7rYQarBMq/QInlb0QM=
273+
github.com/codefresh-io/go-sdk v0.31.0/go.mod h1:CcoVmTFWHGkbrSW8LyOGB/vJe5Vzr3iC/pNE2QIBTyg=
274274
github.com/colinmarc/hdfs v1.1.4-0.20180802165501-48eb8d6c34a9/go.mod h1:0DumPviB681UcSuJErAbDIOx6SIaJWj463TymfZG02I=
275275
github.com/colinmarc/hdfs v1.1.4-0.20180805212432-9746310a4d31/go.mod h1:vSBumefK4HA5uiRSwNP+3ofgrEoScpCS2MMWcWXEuQ4=
276276
github.com/container-storage-interface/spec v1.3.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4=

manifests/runtime.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: "{{ namespace }}"
66
spec:
77
defVersion: 1.0.0
8-
version: 0.0.62
8+
version: 0.0.63
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

pkg/store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func init() {
9494
s.ComponentsReporterSA = "components-reporter-sa"
9595
s.DefaultAPI = "https://g.codefresh.io"
9696
s.EventBusName = "codefresh-eventbus"
97-
s.EventReportingEndpoint = "/argo/api/events"
97+
s.EventReportingEndpoint = "/2.0/api/events"
9898
s.GitSourceName = "default-git-source"
9999
s.LabelKeyCFType = "codefresh.io/entity"
100100
s.MaxDefVersion = semver.MustParse(maxDefVersion)

0 commit comments

Comments
 (0)