Skip to content

Commit 52c3657

Browse files
CR-10596 identifing certificate errors bug fix (#341)
* -identify all certificate errors -small addition to error msg * bump
1 parent 8062b1a commit 52c3657

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-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.305
1+
VERSION=v0.0.306
22

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

cmd/commands/common.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,9 @@ func checkIngressHostCertificate(ingress string) (bool, error) {
524524
_, ok3 := urlErr.Err.(x509.UnknownAuthorityError)
525525
_, ok4 := urlErr.Err.(x509.ConstraintViolationError)
526526
_, ok5 := urlErr.Err.(x509.HostnameError)
527+
ok6 := strings.Contains(urlErr.Err.Error(), "x509")
527528

528-
certErr := ok1 || ok2 || ok3 || ok4 || ok5
529+
certErr := ok1 || ok2 || ok3 || ok4 || ok5 || ok6
529530
if !certErr {
530531
return false, fmt.Errorf("failed with non-certificate error: %w", err)
531532
}
@@ -562,7 +563,7 @@ func askUserIfToProceedWithInsecure(ctx context.Context) error {
562563
}
563564

564565
if store.Get().Silent {
565-
return fmt.Errorf("cancelled installation due to invalid ingress host certificate")
566+
return fmt.Errorf("cancelled installation due to invalid ingress host certificate. you can try again with --insecure-ingress-host")
566567
}
567568

568569
templates := &promptui.SelectTemplates{

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

0 commit comments

Comments
 (0)