Skip to content

Commit cf175ce

Browse files
add message that managed cluster was installed successfully (#503)
* add message that managed cluster was installed successfully * wip * bump
1 parent b3201f8 commit cf175ce

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
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.446
1+
VERSION=v0.0.447
22

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

cmd/commands/cluster.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ func runClusterAdd(ctx context.Context, opts *ClusterAddOptions) error {
183183

184184
jobName := strings.TrimSuffix(store.Get().AddClusterJobName, "-") + nameSuffix
185185

186-
return kubeutil.WaitForJob(ctx, opts.kubeFactory, "kube-system", jobName)
186+
err = kubeutil.WaitForJob(ctx, opts.kubeFactory, "kube-system", jobName)
187+
if err != nil {
188+
return err
189+
}
190+
191+
fmt.Printf("%vcluster %s was added successfully to runtime %s%v\n", GREEN, opts.clusterName, opts.runtimeName, COLOR_RESET)
192+
return nil
187193
}
188194

189195
func setClusterName(ctx context.Context, opts *ClusterAddOptions) error {
@@ -234,7 +240,7 @@ func sanitizeClusterName(name string) (string, error) {
234240
}
235241

236242
name = strings.Trim(name, "-.")
237-
243+
238244
beginsWithNum := regexp.MustCompile(`^\d+`)
239245
name = beginsWithNum.ReplaceAllString(name, "")
240246

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.446/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.447/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.446/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.447/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.446
8+
version: 0.0.447
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)