Skip to content

Commit 2b59fae

Browse files
Cr 10638 (#345)
* wip * bump * wip * wip * wip * wip * upgrade go-sdk * bump
1 parent 3a2a3f2 commit 2b59fae

File tree

8 files changed

+25
-15
lines changed

8 files changed

+25
-15
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.312
1+
VERSION=v0.0.313
22

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

cmd/commands/integrations.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import (
1717
"context"
1818
"encoding/json"
1919
"fmt"
20+
"os"
21+
"strings"
22+
2023
"github.com/codefresh-io/cli-v2/pkg/log"
2124
"github.com/codefresh-io/cli-v2/pkg/store"
2225
"github.com/codefresh-io/cli-v2/pkg/util"
@@ -26,8 +29,6 @@ import (
2629
"github.com/juju/ansiterm"
2730
"github.com/spf13/cobra"
2831
"github.com/spf13/viper"
29-
"os"
30-
"strings"
3132
)
3233

3334
type (

cmd/commands/runtime.go

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ type (
116116
}
117117

118118
RuntimeUpgradeOptions struct {
119-
RuntimeName string
120-
Version *semver.Version
121-
CloneOpts *git.CloneOptions
122-
CommonConfig *runtime.CommonConfig
123-
DisableTelemetry bool
119+
RuntimeName string
120+
Version *semver.Version
121+
CloneOpts *git.CloneOptions
122+
CommonConfig *runtime.CommonConfig
123+
DisableTelemetry bool
124124
}
125125

126126
gvr struct {
@@ -630,6 +630,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
630630
opts.RuntimeStoreIV = iv
631631
rt.Spec.Cluster = server
632632
rt.Spec.IngressHost = opts.IngressHost
633+
rt.Spec.IngressClass = opts.IngressClass
633634
rt.Spec.Repo = opts.InsCloneOpts.Repo
634635

635636
log.G(ctx).WithField("version", rt.Spec.Version).Infof("Installing runtime \"%s\"", opts.RuntimeName)
@@ -1287,6 +1288,7 @@ func RunRuntimeList(ctx context.Context) error {
12871288
healthMessage := "N/A"
12881289
installationStatus := rt.InstallationStatus
12891290
ingressHost := "N/A"
1291+
ingressClass := "N/A"
12901292

12911293
if rt.Metadata.Namespace != nil {
12921294
namespace = *rt.Metadata.Namespace
@@ -1308,7 +1310,11 @@ func RunRuntimeList(ctx context.Context) error {
13081310
ingressHost = *rt.IngressHost
13091311
}
13101312

1311-
_, err = fmt.Fprintf(tb, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n",
1313+
if rt.IngressClass != nil {
1314+
ingressClass = *rt.IngressClass
1315+
}
1316+
1317+
_, err = fmt.Fprintf(tb, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n",
13121318
name,
13131319
namespace,
13141320
cluster,
@@ -1318,6 +1324,7 @@ func RunRuntimeList(ctx context.Context) error {
13181324
healthMessage,
13191325
installationStatus,
13201326
ingressHost,
1327+
ingressClass,
13211328
)
13221329
if err != nil {
13231330
return err

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.312/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.313/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.312/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.313/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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
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
13-
github.com/codefresh-io/go-sdk v0.38.0
13+
github.com/codefresh-io/go-sdk v0.41.1
1414
github.com/fatih/color v1.13.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
@@ -241,8 +241,8 @@ github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h
241241
github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA=
242242
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI=
243243
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
244-
github.com/codefresh-io/go-sdk v0.38.0 h1:nigzhGKPezfoVhkQrgD1c6KSFzEo0O26VAi/+B82eU8=
245-
github.com/codefresh-io/go-sdk v0.38.0/go.mod h1:CcoVmTFWHGkbrSW8LyOGB/vJe5Vzr3iC/pNE2QIBTyg=
244+
github.com/codefresh-io/go-sdk v0.41.1 h1:aEv9fMBk5zBGigGxhv6VMG2DFrNhnD63bx5ZdNXifYQ=
245+
github.com/codefresh-io/go-sdk v0.41.1/go.mod h1:CcoVmTFWHGkbrSW8LyOGB/vJe5Vzr3iC/pNE2QIBTyg=
246246
github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM=
247247
github.com/codeskyblue/go-sh v0.0.0-20190412065543-76bd3d59ff27/go.mod h1:VQx0hjo2oUeQkQUET7wRwradO6f+fN5jzXgB/zROxxE=
248248
github.com/container-storage-interface/spec v1.5.0/go.mod h1:8K96oQNkJ7pFcC2R9Z1ynGGBB1I93kcS6PGg3SsOk8s=

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.1
8-
version: 0.0.312
8+
version: 0.0.313
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

pkg/runtime/runtime.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ type (
5757
Components []AppDef `json:"components"`
5858
Cluster string `json:"cluster"`
5959
IngressHost string `json:"ingressHost"`
60+
IngressClass string `json:"ingressClassName"`
6061
Repo string `json:"repo"`
6162

6263
devMode bool
@@ -206,6 +207,7 @@ func (r *RuntimeSpec) upgrade(fs fs.FS, newRt *RuntimeSpec) ([]AppDef, error) {
206207

207208
newRt.Cluster = r.Cluster
208209
newRt.IngressHost = r.IngressHost
210+
newRt.IngressClass = r.IngressClass
209211
newRt.Repo = r.Repo
210212

211213
newComponents := make([]AppDef, 0)

0 commit comments

Comments
 (0)