Skip to content

Commit d955f72

Browse files
added detailed instructions when failing to create default git integration (#248)
1 parent cebb85d commit d955f72

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
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.225
1+
VERSION=v0.0.226
22

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

cmd/commands/runtime.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,14 @@ func addDefaultGitIntegration(ctx context.Context, runtime string, opts *apmodel
684684
return fmt.Errorf("failed to build app-proxy client: %w", err)
685685
}
686686

687+
errInstructions := util.Doc(fmt.Sprintf(
688+
"you can try to create it manually by running:\n\n <BIN> integration git add --provider %s --api-url %s\n",
689+
strings.ToLower(opts.Provider.String()),
690+
opts.APIURL,
691+
))
692+
687693
if err := RunGitIntegrationAddCommand(ctx, appProxyClient, opts); err != nil {
688-
return err
694+
return fmt.Errorf("%w\n%s", err, errInstructions)
689695
}
690696

691697
log.G(ctx).Info("Added default git integration")

docs/releases/release_notes.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
- Argo Rollouts [v1.1.0](https://github.com/argoproj/argo-rollouts/releases/tag/v1.1.0)
77
- Argo Workflows [v3.2.4](https://github.com/argoproj/argo-workflows/releases/tag/v3.1.8)
88

9-
### Security Fixes:
10-
11-
- Argo CD [GHSA-63qx-x74g-jcr7](https://github.com/argoproj/argo-cd/security/advisories/GHSA-63qx-x74g-jcr7) fixed in [v2.1.10](https://github.com/argoproj/argo-cd/releases/tag/v2.1.10)
12-
139
### Using brew:
1410

1511
```bash
@@ -27,7 +23,7 @@ cf version
2723

2824
```bash
2925
# download and extract the binary
30-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.225/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.226/cf-linux-amd64.tar.gz | tar zx
3127

3228
# move the binary to your $PATH
3329
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -40,7 +36,7 @@ cf version
4036

4137
```bash
4238
# download and extract the binary
43-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.225/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.0.226/cf-darwin-amd64.tar.gz | tar zx
4440

4541
# move the binary to your $PATH
4642
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.0
8-
version: 0.0.225
8+
version: 0.0.226
99
bootstrapSpecifier: github.com/codefresh-io/cli-v2/manifests/argo-cd
1010
components:
1111
- name: events

0 commit comments

Comments
 (0)