Skip to content

Commit

Permalink
Merge pull request #15 from RafalKorepta/rk/fix/cert-manager-version
Browse files Browse the repository at this point in the history
Fix cert manager version
  • Loading branch information
alenkacz authored Feb 9, 2023
2 parents 7dec77a + 9c4f21a commit e625e50
Show file tree
Hide file tree
Showing 36 changed files with 66,319 additions and 225,742 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/verify/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (o *Options) Execute() error {
if result.CertificateError != nil {
logrus.
Infof("error when waiting for certificate to be ready: %v\n", result.CertificateError)
return err
return result.CertificateError
}
logrus.Info("ヽ(•‿•)ノ Cert-manager is READY!\n")
return nil
Expand Down
5 changes: 3 additions & 2 deletions pkg/verify/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package verify
import (
"context"
"fmt"
"github.com/sirupsen/logrus"
"strings"

"github.com/sirupsen/logrus"

"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down Expand Up @@ -52,7 +53,7 @@ func WaitForTestCertificate(ctx context.Context, dynamicClient dynamic.Interface
}

func getGroupVersion(cmVersion string) (string, string) {
if strings.HasPrefix(cmVersion, "v1.0") {
if strings.HasPrefix(cmVersion, "v1.") {
return defaultGroup, defaultVersion
} else {
return defaultGroup, "v1alpha2"
Expand Down
26,311 changes: 0 additions & 26,311 deletions test/e2e/verify-1.0.0/cert-manager/cert-manager.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions test/e2e/verify-1.10.0-alpha.0/01-verify.yaml

This file was deleted.

26,544 changes: 0 additions & 26,544 deletions test/e2e/verify-1.10.0-alpha.0/cert-manager/cert-manager.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
5,518 changes: 5,518 additions & 0 deletions test/e2e/verify-1.10.0/cert-manager/cert-manager.yaml

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
5,529 changes: 5,529 additions & 0 deletions test/e2e/verify-1.11.0/cert-manager/cert-manager.yaml

Large diffs are not rendered by default.

26,544 changes: 0 additions & 26,544 deletions test/e2e/verify-1.2.0/cert-manager/cert-manager.yaml

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: ./../../../bin/cm-verifier
- command: ./../../../bin/cm-verifier --debug
File renamed without changes.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/e2e/verify-1.4.4/01-verify.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: ./../../../bin/cm-verifier
- command: ./../../../bin/cm-verifier --debug
42,284 changes: 16,464 additions & 25,820 deletions test/e2e/verify-1.4.4/cert-manager/cert-manager.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/e2e/verify-1.5.5/01-verify.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: ./../../../bin/cm-verifier
- command: ./../../../bin/cm-verifier --debug
27,251 changes: 8,934 additions & 18,317 deletions test/e2e/verify-1.5.5/cert-manager/cert-manager.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: pwd
- command: ls -al cert-manager
- command: ls -al .
- command: cat cert-manager/cert-manager.yaml
- command: kubectl apply --validate=false -f cert-manager/cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: ./../../../bin/cm-verifier
- command: ./../../../bin/cm-verifier --debug
File renamed without changes.
17,329 changes: 17,329 additions & 0 deletions test/e2e/verify-1.6.3/cert-manager/cert-manager.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/e2e/verify-1.7.3/01-verify.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: ./../../../bin/cm-verifier
- command: ./../../../bin/cm-verifier --debug
29,466 changes: 4,094 additions & 25,372 deletions test/e2e/verify-1.7.3/cert-manager/cert-manager.yaml

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions test/e2e/verify-1.7.3/verify-1.6.3/00-install.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions test/e2e/verify-1.7.3/verify-1.6.3/02-delete.yaml

This file was deleted.

Loading

0 comments on commit e625e50

Please sign in to comment.