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
joshvanl
ce1424162e
Updates all sub commands to discover the CLI name using the build
...
package name
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-10-14 14:45:01 +01:00
joshvanl
5f5217b412
Updates command registration to use new commands package. Name CLI
...
command by the build name.
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-10-14 14:44:19 +01:00
joshvanl
2f99b3130c
Adds build/commands package to expose which commands should be
...
registered. Gates the completion command which is disabled by defualt.
Can be configured at build time.
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-10-14 14:43:05 +01:00
joshvanl
bbd39de0fc
Adds build package to allow discovering the correct name of the CLI
...
command. Can be configured at build time.
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-10-14 14:42:10 +01:00
joshvanl
bae35d8adb
Add ValidArgs functions to all commands to allow auto-completion of
...
runtime object names
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-10-14 13:20:31 +01:00
jetstack-bot
89bc977eb2
Merge pull request #4408 from JoshVanL/ctl-generate-completion
...
Adds generate completion scripts for bash, zsh, fish, and powershell
2021-10-11 16:02:14 +01:00
Richard Wall
e53c29f128
Call Options.Complete to set up the version checker command
...
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-10-09 10:14:01 +01:00
jetstack-bot
898dc0e254
Merge pull request #4419 from artificial-aidan/master
...
Add Certificate RenewBefore prometheus metrics
2021-09-27 17:51:46 +01:00
Aidan Jensen
4d7f40b2cf
Fix typo in test file also
...
Signed-off-by: Aidan Jensen <aidan@artificial.com>
2021-09-27 09:12:53 -07:00
joshvanl
8c95605d8e
Adds generate completion scripts for bash, zsh, fish, and powershell
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-09-02 12:00:09 +01:00
joshvanl
33621ca333
Use helm settings to define CLI flags for install command
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-08-24 19:11:23 +01:00
joshvanl
4cdbb64003
Update ctl integration tests to use new local factory package
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-08-24 16:37:01 +01:00
joshvanl
80a7bc5412
Update root ctl command to no longer pass a factory to sub commands
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-08-24 16:30:44 +01:00
joshvanl
20c1de7626
Update all commands to no longer receive a factory, and instead use the
...
shared local factory package
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-08-24 16:30:44 +01:00
joshvanl
56b29e0f59
Change install command to use Helm to register flags. No longer need to
...
copy flag values
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-08-24 16:30:43 +01:00
joshvanl
f6b7bc973b
Adds /cmd/ctl/pkg/factory which registers Kube CLI flags, and provides
...
clients/config needed
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-08-24 16:29:01 +01:00
Eng Zer Jun
54e70d2cc4
refactor: move from io/ioutil to io and os package
...
The io/ioutil package has been deprecated in Go 1.16. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-08-23 19:50:42 +08:00
Inteon
f4bc283965
update comments
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-08-12 22:54:14 +02:00
Inteon
e5df60d47e
don't wait for hooks in kubectl cert-manager x install test & use local chart for tests
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-08-11 23:18:33 +02:00
jetstack-bot
d0f4c82baf
Merge pull request #4226 from inteon/simple_kubectl_check_version
...
add 'kubectl cert-manager version'
2021-08-03 12:36:19 +01:00
Inteon
85710579dd
Apply suggestions from code review
...
Co-authored-by: Richard Wall <wallrj@users.noreply.github.com>
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-30 17:00:27 +02:00
Inteon
644db10b92
don't early-stop, instead return all versions
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-29 15:06:31 +02:00
joshvanl
1f4343d98e
Move exported cmd util func to package where it is used. Removes util
...
package
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-07-28 14:25:17 +01:00
Inteon
6545064fcf
align flags and behaviour to 'kubectl version'
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-27 18:02:21 +02:00
jetstack-bot
77c5c2fb16
Merge pull request #4184 from inteon/kubectl_certmanager_install_tests
...
Add basic tests to kubectl cert-manager x install
2021-07-23 16:16:19 +01:00
Inteon
0ed0135930
Improvements based on reviewer's feedback
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-23 15:29:43 +02:00
Inteon
50daf04118
rename cmdutil to k8scmdutil
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-22 21:43:53 +02:00
Inteon
d6cd6f457d
set correct exit codes when exiting
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-22 12:57:08 +02:00
Inteon
21bc98979e
improved ux
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-16 13:11:40 +02:00
Inteon
ac7775bdb4
made errors human readable, added unit tests, added check api to e2e, fixed os.Exit(1)
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-15 16:50:31 +02:00
Inteon
5458173739
Add kubectl 'cert-manager check api' command
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-15 16:50:31 +02:00
Inteon
611bac67cf
Add basic test cases
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-08 16:28:38 +02:00
Inteon
d4e8aad895
remove unused function
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-03 00:31:48 +02:00
Inteon
3f6efb7575
remove uninstall and resolve all outstanding issues
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 22:04:41 +02:00
Inteon
dfdb375b28
fix boilerplate
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 15:39:15 +02:00
Inteon
18ccebdae3
fix typo
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 15:14:45 +02:00
Inteon
38b95f897f
bugfix rel.Config is nil
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 15:08:41 +02:00
Inteon
b4f65b47ed
update docs
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 14:56:10 +02:00
Inteon
136b8ef374
simplified uninstalling
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 12:58:30 +02:00
Inteon
3177be515a
improve default flag values & other requested changes
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 12:58:30 +02:00
Inteon
f228e6c7be
fix command flags + move to experimental + redo uninstall logic
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 12:58:30 +02:00
Inteon
1c4b511876
basic install and uninstall functionality
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-02 12:58:30 +02:00
joshvanl
3eccfaaa94
Adds review comments for adding supported versions, writing to stdout,
...
removing error wraping
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-06-18 11:58:24 +01:00
joshvanl
331e178f60
Wires up ctl x create csr command
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-06-15 15:37:28 +01:00
joshvanl
02666fde10
Adds create CertificateSingingRequest form Certificate command
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-06-15 15:17:35 +01:00
joshvanl
9ab0a5a77c
Fix command comments
...
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-25 19:08:21 +00:00
joshvanl
f25be73f73
Adds comments for the Reason and Message options of the ctl approve and
...
deny commands
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-24 17:17:42 +00:00