Commit Graph
147 Commits
Author SHA1 Message Date
Josh SorefandGitHub efd26e6b4f Add missing quote to help
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-09-09 15:32:59 -04:00
Haoxiang Zhou 4ccf8ebdb7 Return error thrown when looking for events
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 16:29:33 +02:00
Haoxiang Zhou 5f423a442e Create Events for integration and unit tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 16:28:28 +02:00
Haoxiang Zhou a1ce1cefb5 Add Events of Issuer and Secret to output
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-26 15:31:53 +02:00
jetstack-botandGitHub 85a9044c0c Merge pull request #3205 from JoshVanL/ctl-convert-list
Add support for ctl convert over a list
2020-08-21 12:21:43 +01:00
JoshVanL 3ed1dfdc31 Updates deps
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 11:05:23 +01:00
JoshVanL d3e27905eb Remove bad error text output
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:48:21 +01:00
JoshVanL 1c9e955407 Add support for ctl covert with List
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:40:57 +01:00
Richard Wall 1254179f3a Use V1 API resources in ctl create certificaterequest tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 17:12:15 +01:00
Richard Wall bd94bf92a5 cmapiv1 > cmapi
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall b638954b03 Fix ./cmd/ctl and tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall 81eb53f597 ./hack/update-all.sh
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:28:06 +01:00
Richard Wall a70298180a Run a script to update v1alpha2 usage to v1
Script is available at https://github.com/jetstack/cert-manager/pull/3201

Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-08-20 14:26:51 +01:00
Haoxiang Zhou 6c26e0d821 Add Challenge output and update tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-17 16:15:28 +02:00
Haoxiang Zhou a77f4be62b Use assert.Equals instead of reflect.DeepEquals to compare status structs
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-17 12:19:39 +02:00
Haoxiang Zhou 62700fceef Add unit tests testing building CertificateStatus struct from gathered Data
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou 5a8f3371fa Refactor Run() into multiple functions for better testing
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou 894745be7a Refactor out unnecessary helper functions for IssuerStatus
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou 9a1da3ed71 Not creating OrderStatus at all if not ACME Issuer
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
Haoxiang Zhou d4877695da Use GenericIssuer to clean up Run function
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-14 09:35:09 +02:00
jetstack-botandGitHub e1791b0b0e Merge pull request #3154 from hzhou97/add_order_output
Ctl command `status certificate`: Add order output
2020-08-12 14:13:59 +01:00
Maartje Eyskens 5d4869b20e Fix formatted logs
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Maartje Eyskens fecd0b3518 Set all log levels for info
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Maartje Eyskens 9dd00905e9 Update klog
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>

klog v2

Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-12 10:59:41 +02:00
Haoxiang Zhou a1f7a1fcc3 Review implementation
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-06 18:21:48 +01:00
Haoxiang Zhou 8c9eb43102 Clean up
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-06 16:37:07 +01:00
Haoxiang Zhou 196959a05f No output about Orders if non-ACME Issuer
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-06 14:37:54 +01:00
Haoxiang Zhou 3913fa981f Add output about Order of Certificate
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-06 12:02:26 +01:00
Haoxiang Zhou 8b6aad2c85 Populate CertificateStatus struct directly
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-04 12:55:33 +01:00
Haoxiang Zhou f971e49400 Update unit test
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-03 12:07:14 +01:00
Haoxiang Zhou 6afc1d6cfa Change status cert to use structs
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-03 11:19:13 +01:00
Haoxiang Zhou 33bb65c9e1 Add NewTabWriter function
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-03 10:11:57 +01:00
Haoxiang Zhou d490e52a5e Define builder and String functions for status struct
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-03 10:09:36 +01:00
Haoxiang Zhou 95a4f8f477 Define structs containing info for status command
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-31 12:17:29 +01:00
Haoxiang Zhou 25472462a3 Handle unknown values of Ext Key Usage if added in future
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-31 09:45:29 +01:00
Haoxiang Zhou ef95d15642 Updated tests with output for secret
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-30 17:54:57 +01:00
Haoxiang Zhou 6ddcef818e Added unit test for key usage to string funtions
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-30 17:50:50 +01:00
Haoxiang Zhou 7bdc1eb237 Add output for secrets
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-29 12:24:04 +01:00
Haoxiang Zhou f3bfc6d6ba Use Fprintf correctly
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-29 12:22:44 +01:00
jetstack-botandGitHub ec6d2bb3e5 Merge pull request #3120 from hzhou97/add_issuer_output
Ctl status certificate command: Add issuer output and creation time
2020-07-29 12:13:20 +01:00
jetstack-botandGitHub 8434c6a941 Merge pull request #3094 from hzhou97/create_cr_new_test
Create cr command: change and add integration tests
2020-07-27 15:56:14 +01:00
Haoxiang Zhou 0c3eeaed96 Handle Issuers from non cert-manager groups
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-27 15:41:13 +01:00
Haoxiang Zhou 0d449ea76d Add tests for non-existing issuer; Review implementation
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-27 14:20:49 +01:00
Haoxiang Zhou 3b6b725c5d Added Certificate creation time to output
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-24 16:03:29 +01:00
Haoxiang Zhou c4f7e27413 Add Issuer/ClusterIssuer output
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-24 15:32:34 +01:00
Haoxiang Zhou cc40aad0ad Fix bug of using overwritten pointer when searching for CR
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-24 14:20:29 +01:00
Haoxiang Zhou e9cdcbd3c4 Remove unnecessary PrefixWriter implementation
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-23 09:47:30 +01:00
Haoxiang Zhou 57ff60e35c Added more unit tests for Run function
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-22 17:29:47 +01:00
Haoxiang Zhou d65e95eaeb Refactor TestCtlCreateCRBehaviourBeforeAnythingIsCreated to unit tests
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-22 16:51:48 +01:00
Haoxiang Zhou 8525a26bd2 Format the Events output with tabwriter
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-07-22 12:31:37 +01:00