Commit Graph

246 Commits

Author SHA1 Message Date
Haoxiang Zhou
378521300a Add argument check, example uses; cleanup
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-04 10:12:17 +01:00
Haoxiang Zhou
19e489c59a Move use of factory out of Run func
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-04 09:14:40 +01:00
Haoxiang Zhou
0e3a355873 Use first arg as name of CR if supplied.
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-04 09:14:40 +01:00
Haoxiang Zhou
d14c316f3d Clean-up and comments
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-04 09:14:12 +01:00
James Munnelly
395445e460 Handle multiple versions when decoding objects from file
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-05-29 15:17:07 +01:00
Haoxiang Zhou
655ca97d71 Create CR from Certificate
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-05-29 13:32:50 +01:00
Haoxiang Zhou
5996cdc650 Read in manifest for Certificate
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-05-29 09:51:05 +01:00
Haoxiang Zhou
990cb6ab15 Added options and scaffold Run function.
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-05-28 15:27:17 +01:00
Haoxiang Zhou
19ad36a819 Add boilerplate and fix style issue
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-05-28 13:02:14 +01:00
Haoxiang Zhou
61c45c73fe Updated bazel dependencies
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-05-28 12:16:25 +01:00
Haoxiang Zhou
ac89f21cac Add new ctl sub command certificaterequest for create
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-05-28 11:24:46 +01:00
Haoxiang Zhou
70aaeee2b6 Add new ctl command create
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-05-28 11:23:32 +01:00
James Munnelly
b126a0c0e5 Use acme AccountRegistry throughout and tidy up ACME setup code
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-05-13 13:14:46 +01:00
James Munnelly
927a16fe03 Update references to ctl binary name
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-05-05 16:44:27 +01:00
jetstack-bot
a04d2f0935
Merge pull request #2871 from meyskens/tar-everything
Release a tar.gz for the CLI tool
2020-05-01 18:22:55 +01:00
jetstack-bot
304f241c8d
Merge pull request #2872 from meyskens/kubectl-cert-manager
Rename the CLI to kubectl cert-manager
2020-05-01 17:42:54 +01:00
Maartje Eyskens
f868b48a70 fix cobra failure
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-05-01 17:13:29 +02:00
Maartje Eyskens
68fc95189f Use doesn't allow a space
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-05-01 17:04:59 +02:00
Maartje Eyskens
fa3e838f2f Fix the convert example
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-05-01 17:00:34 +02:00
Maartje Eyskens
d6ff9aa2f2 Rename the CLI to kubectl cert-manager
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-05-01 16:35:29 +02:00
Maartje Eyskens
801c24b485 Release a tar.gz for the CLI tool
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-05-01 14:47:04 +02:00
James Munnelly
f7c5f1c7fe Ensure version x_defs are set on built ctl binary
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-30 16:53:25 +01:00
JoshVanL
25ab073fbd
Updates renew command test so that it adds kubeconfig flags which it no
longer inherits

Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 13:08:28 +01:00
JoshVanL
5af4fa8e87
Moves ctl kubeconfig flags to top level
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:58:36 +01:00
JoshVanL
28f7e7bc78
Cleans up renew kube flags and adds --namespace validation
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:57:42 +01:00
JoshVanL
9056534024
Removes --wait from ctl renew command
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:44 +01:00
JoshVanL
3d8a1110d8
Adds ctl renew validation unit tests
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:38 +01:00
JoshVanL
1d238e5cc0
Removes ability to use password auth
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:36 +01:00
JoshVanL
27d5ecd8a9
Updates help, better validation and pipes through context
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:34 +01:00
JoshVanL
57bde90d8d
Adds all kubectl client auth methods
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:32 +01:00
JoshVanL
4f0076615c
All ctl renew -A and -l options together
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:07 +01:00
JoshVanL
2a09b8ba55
Adds --wait, --all-namespaces, and --all to cert-manager-ctl renew
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:05 +01:00
James Munnelly
d3b6d70bc3
Fix-up renew subcommand
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-30 12:55:02 +01:00
JoshVanL
fa8c9753ac
Adds cert-manager-ctl renew sub-command
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:54:17 +01:00
JoshVanL
0657e34396
Moves cobra commands from cmd -> app
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:14:51 +01:00
JoshVanL
dcccdd39c5
Adds doc generation for cobra controlled ctl comands
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:14:48 +01:00
JoshVanL
2465bf8bd0
Uses own schema and fixes some text
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-28 10:23:53 +01:00
JoshVanL
23ce8fc0a8
Adds convert examples
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-28 09:28:18 +01:00
JoshVanL
4260eca10f
Expands some comments and adds some better error handling
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-28 09:28:16 +01:00
JoshVanL
2ec35382cd
Adds ctl covert command
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-28 09:28:14 +01:00
James Munnelly
67a93b4f22 Remove unused vars
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-21 17:58:18 +01:00
James Munnelly
ba33c823a3 Add 'keystores' stanza to CertificateSpec to allow dynamic keystore configuration
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-21 17:58:18 +01:00
James Munnelly
8aaca4a2ad expcertificates: add readiness controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
cde13aa6fd Add requestmanager controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
a53288b4c1 Enable keymanager and issuing controller with feature gate
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-16 19:10:41 +01:00
James Munnelly
dee93c4fb9 Add ExperimentalCertificateControllers feature gate
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:53 +01:00
James Munnelly
22344352c8 Add experimental 'trigger' controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:21 +01:00
jetstack-bot
fba7b09ac8
Merge pull request #2725 from JoshVanL/ctl-version
cert-manager-ctl CLI with version
2020-04-08 12:45:15 +01:00
JoshVanL
49d3bde7eb
Move cmd signal handler into shared util
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-02 11:02:33 +01:00
James Munnelly
e36c1acf1c Add '-ubi' suffix to AppVersion in UBI artifacts
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-01 19:34:34 +01:00