Skip to content

Commit 06034ca

Browse files
intg-reg-log (#371)
* completing the intg fail suggestion * added ingress class headline
1 parent 25b1f93 commit 06034ca

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
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.331
1+
VERSION=v0.0.332
22

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

cmd/commands/runtime.go

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ type (
9797
GitIntegrationRegistrationOpts *apmodel.RegisterToGitIntegrationArgs
9898
KubeFactory kube.Factory
9999
CommonConfig *runtime.CommonConfig
100-
NamespaceLabels map[string]string
100+
NamespaceLabels map[string]string
101101
versionStr string
102102
kubeContext string
103103
kubeconfig string
@@ -881,20 +881,28 @@ func removeGitIntegrations(ctx context.Context, opts *RuntimeUninstallOptions) e
881881

882882
func addDefaultGitIntegration(ctx context.Context, appProxyClient codefresh.AppProxyAPI, runtime string, opts *apmodel.AddGitIntegrationArgs) error {
883883
if err := RunGitIntegrationAddCommand(ctx, appProxyClient, opts); err != nil {
884-
command := util.Doc(fmt.Sprintf(
884+
commandAdd := util.Doc(fmt.Sprintf(
885885
"\t<BIN> integration git add default --runtime %s --provider %s --api-url %s",
886886
runtime,
887887
strings.ToLower(opts.Provider.String()),
888888
opts.APIURL,
889889
))
890+
891+
commandRegister := util.Doc(fmt.Sprintf(
892+
"\t<BIN> integration git register default --runtime %s --token <your-token>",
893+
runtime,
894+
))
895+
890896
return fmt.Errorf(`
891-
%w
897+
%w
892898
you can try to create it manually by running:
893899
894-
%s
895-
`,
900+
%s
901+
%s
902+
`,
896903
err,
897-
command,
904+
commandAdd,
905+
commandRegister,
898906
)
899907
}
900908

@@ -1250,7 +1258,7 @@ func RunRuntimeList(ctx context.Context) error {
12501258
}
12511259

12521260
tb := ansiterm.NewTabWriter(os.Stdout, 0, 0, 4, ' ', 0)
1253-
_, err = fmt.Fprintln(tb, "NAME\tNAMESPACE\tCLUSTER\tVERSION\tSYNC_STATUS\tHEALTH_STATUS\tHEALTH_MESSAGE\tINSTALLATION_STATUS\tINGRESS_HOST")
1261+
_, err = fmt.Fprintln(tb, "NAME\tNAMESPACE\tCLUSTER\tVERSION\tSYNC_STATUS\tHEALTH_STATUS\tHEALTH_MESSAGE\tINSTALLATION_STATUS\tINGRESS_HOST\tINGRESS_CLASS")
12541262
if err != nil {
12551263
return err
12561264
}

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.331/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.332/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.331/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.332/cf-darwin-amd64.tar.gz | tar zx
4040

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

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

0 commit comments

Comments
 (0)