cert-manager/pkg/util
Ashley Davis 93f868b3bc
move versionchecker tests to test/integration
Since this test requires setup before it can successfully run,
we define it as an integration test and move it here so that on a
fresh checkout a user can always run `go test ./pkg/...` and expect that
it would succeed.

Also involves:

- Exporting the VersionChecker and adding NewWithConfig to enable
  testing
- Some comment changes
- A change to the type returned by New(); see
  https://github.com/golang/go/wiki/CodeReviewComments#interfaces

Ideally I'd not add `NewFromClient` but I think it's the most minimal
change and is preferable to publicly exporting `VersionChecker.client`.

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-01-12 14:21:53 +00:00
..
cmapichecker A note about testing the handling of errors relating to the ValidatingWebhook 2021-09-29 13:05:53 +01:00
coverage Log a message when test framework fails to parse cover profile flag 2021-05-05 16:40:16 +01:00
errors Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
feature Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
kube linter party: duplicate import of k8s.io/api/core/v1 (ST1019) 2021-07-06 12:51:01 +02:00
pki Fix manually specified Certificate and CertificateRequest versions 2021-08-19 14:48:12 +01:00
predicate Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
profiling Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
versionchecker move versionchecker tests to test/integration 2022-01-12 14:21:53 +00:00
BUILD.bazel Merge pull request #4226 from inteon/simple_kubectl_check_version 2021-08-03 12:36:19 +01:00
useragent.go Rename the User Agent fields 2020-12-15 17:25:18 +01:00
util_test.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
util.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
version_test.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
version.go don't early-stop, instead return all versions 2021-07-29 15:06:31 +02:00