Tim Ramlot
4c94f3ef10
create ad-hoc schemes instead of sharing global ones
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-11-06 21:58:24 +01:00
guiyong.ou
3d76c20f51
cleanup: some redundant code clean up
...
Signed-off-by: guiyong.ou <guiyong.ou@daocloud.io>
2023-08-14 17:36:25 +08:00
Tim Ramlot
78b78cecca
check api, only log if -v is set
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-01 16:15:14 +02:00
Tim Ramlot
b4479e53ed
use logging library in cmctl
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-01 16:07:20 +02:00
Tim Ramlot
ced9f2bce0
if wait is set to 0, we still want to check the API once
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-30 15:08:02 +02:00
Tim Ramlot
2ba39e9ebc
allow importing the ctl cmd package
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-12 14:13:04 +02:00
Tim Ramlot
e08a13496d
replace deprecated wait.PollUntil() and wait.Poll()
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-09 17:47:53 +02:00
Tim Ramlot
d656b2d9da
replace deprecated PollImmediateUntil with PollUntilContextCancel
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-07 10:15:46 +02:00
Ashley Davis
6ce6ae839e
separate binaries/tests into separate modules with minimal dependencies
...
also add gomod validation in CI, along with a cmrel version bump
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-04-05 10:30:39 +01:00
Mauro M. Silva
5ec677d9b4
improving the error message
...
Signed-off-by: Mauro M. Silva <maumontesilva@gmail.com>
2023-03-30 00:52:32 +01:00
Mauro M. Silva
9f584cfb9a
change the message
...
Signed-off-by: Mauro M. Silva <maumontesilva@gmail.com>
2023-03-28 22:16:44 +01:00
Mauro M. Silva
f703a5409d
Error if the resource name is omitted, unless --all is also used.
...
Signed-off-by: Mauro M. Silva <maumontesilva@gmail.com>
2023-03-28 09:21:36 +01:00
Tim Ramlot
f36c06f10d
move cmd/util/ to internal/cmd/util/, since it is also imported by packages outside of cmd/
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-02-28 12:38:59 +01:00
Tim Ramlot
23de5240e9
move utility functions to reduce fragmentation and rename functions for consistency
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-01-23 13:19:39 +01:00
irbekrm
53abc8cb2e
Use fake kube apiserver version when generating helm template in cmctl x install
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-12 15:00:21 +00:00
Ashley Davis
fb231ab641
Remove bazel 🎉
...
This removes all .bazel and .bzl files, and a bunch of scripts relating
to bazel, now that it's been entirely replaced.
There are still a few places where traces could be removed, but this
removes the brunt of the bazel stuff that remains.
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-07-26 11:38:50 +01:00
Mark Shields
c2f585657a
fix(cmctl): typo
...
Signed-off-by: Mark Shields <4237425+beejiujitsu@users.noreply.github.com>
2022-06-16 22:14:36 -04:00
Monis Khan
2a33c7a5c2
Use Kubernetes CSR spec.expirationSeconds to express cert duration
...
This change adds the ability to express certificate duration using
the Kubernetes CSR spec.expirationSeconds field alongside the existing
approach of using the experimental.cert-manager.io/request-duration
annotation. Both approaches are supported as the expirationSeconds
field requires Kubernetes v1.22+.
Signed-off-by: Monis Khan <mok@vmware.com>
2022-03-21 09:40:32 -04:00
jetstack-bot
22419602c0
Merge pull request #4897 from jahrlin/uninstall
...
cmctl x uninstall
2022-03-08 13:33:00 +00:00
Joakim Ahrlin
4f72d061c5
update uninstall description
...
Signed-off-by: Joakim Ahrlin <joakim.ahrlin@gmail.com>
2022-03-02 10:21:26 +01:00
Jake Sanders
03748831a9
Remove hardcoded cert from cmctl inspect secret unit tests
...
Signed-off-by: Jake Sanders <i@am.so-aweso.me>
2022-03-01 13:11:31 +00:00
Joakim Ahrlin
a1e3000a77
dont export options fields
...
Signed-off-by: Joakim Ahrlin <joakim.ahrlin@gmail.com>
2022-02-24 14:44:53 +01:00
Joakim Ahrlin
02485ebede
goimports
...
Signed-off-by: Joakim Ahrlin <joakim.ahrlin@gmail.com>
2022-02-24 14:40:04 +01:00
Joakim Ahrlin
632a8b0476
add and update build files
...
Signed-off-by: Joakim Ahrlin <joakim.ahrlin@gmail.com>
2022-02-24 14:36:35 +01:00
Joakim Ahrlin
b92deaa4d2
add uninstall command
...
Signed-off-by: Joakim Ahrlin <joakim.ahrlin@gmail.com>
2022-02-24 14:32:05 +01:00
DiptoChakrabarty
ee069f2c45
fix comments to reduce golint issues
...
Signed-off-by: DiptoChakrabarty <diptochuck123@gmail.com>
2022-02-16 17:28:08 +05:30
Ashley Davis
3a055cc2f5
rename all uses of github.com/jetstack/cert-manager
...
This was done by running the following command twice:
```bash
grep -Ri "github.com/jetstack/cert-manager" . | \
cut -d":" -f1 | \
sort | \
uniq | \
xargs sed -i
"s/github.com\/jetstack\/cert-manager/github.com\/cert-manager\/cert-manager/"
```
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-02 09:08:31 +00:00
Richard Wall
3679ee8888
Apply suggestions from code review
...
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2022-01-20 22:35:48 +00:00
Richard Wall
0f5ca4626f
Make sure that cmctl x install uses the cert-manager namespace by default
...
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2022-01-20 13:46:32 +00:00
Josh Soref
562e40ba2e
Simplify successfully migrated message
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-18 14:43:42 -05:00
jetstack-bot
e2aede44c7
Merge pull request #4731 from DiptoChakrabarty/lint
...
add go linters fixes within codebase
2022-01-18 12:52:57 +00:00
DiptoChakrabarty
b0e2264b60
add go linters
...
Signed-off-by: DiptoChakrabarty <diptochuck123@gmail.com>
2022-01-13 00:12:15 +05:30
James Munnelly
efd1cad7f4
Reword log messages in the 'cmctl upgrade migrate-api-version' command
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-07 12:45:50 +00:00
James Munnelly
c841d01d68
Allow specify --qps and --burst
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 16:47:43 +00:00
James Munnelly
b3f14ef51d
Expand example usage text
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 16:42:39 +00:00
James Munnelly
4b257c1d72
Only mention upgrading to 1.0-1.6 once
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 16:39:07 +00:00
James Munnelly
35a96362a7
Rename command to 'migrate-api-version'
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 15:21:47 +00:00
James Munnelly
0f199173ba
Add missing copyright headers
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 15:08:48 +00:00
James Munnelly
22b2b3687a
Don't assume we are targetting 'v1'
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 15:07:27 +00:00
James Munnelly
c4d97e1f53
Indicate whether a migration was actually performed in Run
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 15:07:10 +00:00
James Munnelly
f6e3458837
Rename --force to --skip-stored-version-check
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 15:06:26 +00:00
James Munnelly
5b50412d1e
Fix bug causing error to always be returned
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 14:07:58 +00:00
James Munnelly
8fa378fe01
Check to ensure the storage version or storedVersions have not unexpectedly changed before patching storedVersions
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 13:18:31 +00:00
James Munnelly
feca88bae5
Retry failed requests 3 times before giving up
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 13:18:31 +00:00
James Munnelly
438d74be15
Reorganise migrate command into a its own struct & add --force flag
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 13:18:31 +00:00
James Munnelly
0ca2db69a3
Print start time and how long it took to migrate resources
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 13:18:31 +00:00
James Munnelly
110604f1e5
Add 'cmctl upgrade migrate' tool to assist in v1.7 upgrade
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-06 13:18:31 +00:00
Igor Zibarev
f9ceb8a73e
Fix some lint issues regarding comments
...
References issue #4457
Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
2021-11-02 13:57:20 +03:00
Maël Valais
1a1ef80b1b
cmctl status was fetching v1beta1 orders instead of v1
...
Signed-off-by: Maël Valais <mael@vls.dev>
2021-10-29 12:48:57 +02:00
joshvanl
64feb85490
Adds bazel to build and release cmctl, along with kubectl-cert_manager
...
binary
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-10-14 15:49:46 +01:00