Commit Graph

4082 Commits

Author SHA1 Message Date
James Munnelly
1adfe16690 Bulk fix of non-test staticcheck failures
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-26 12:25:08 +01:00
James Munnelly
d09a437c7c Add verify-staticcheck.sh script
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-26 12:02:55 +01:00
jetstack-bot
63b7ca26b8
Merge pull request #3027 from munnerz/expcerts-renewal
expcertificates: fix bug renewing certificates automatically near expiry
2020-06-26 09:21:39 +01:00
James Munnelly
86b8cab328 expand out 'clearCertificateFields' function
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-25 10:44:08 +01:00
jetstack-bot
d7d19d982b
Merge pull request #3028 from munnerz/pkcs8-integration-test
expcertificates: add integration test for PKCS#8 keyFormat
2020-06-23 18:33:12 +01:00
jetstack-bot
83f391c177
Merge pull request #3018 from hzhou97/fix-convert-cmd
Fix ctl convert cmd
2020-06-23 18:14:12 +01:00
jetstack-bot
2f4c57e178
Merge pull request #2957 from hzhou97/create_cr_cmd
Add Create CertificateRequest ctl command
2020-06-23 17:21:12 +01:00
Haoxiang Zhou
24404aa1eb Added new scheme to use for ctl commands
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-23 17:18:56 +01:00
James Munnelly
7e87db23e7 Add integration test for PKCS#8 keyFormat
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 17:12:19 +01:00
James Munnelly
1ec1a07b72 surpress control plane output during integration tests
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:48:33 +01:00
James Munnelly
dc01fa2394 add integration test for certificate renewal
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:48:33 +01:00
James Munnelly
ba26d65c68 schedule resyncs once renewalTime has passed to handle certificate renewals in the future
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:48:33 +01:00
James Munnelly
b3300b8673 update trigger policies unit tests for status.renewalTime field
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:48:33 +01:00
James Munnelly
fe51a02227 use status.renewalTime in trigger policies and correctly plumb through clock
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:37:50 +01:00
James Munnelly
8bb4bb389a use correct PolicyChain in readiness controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:37:50 +01:00
James Munnelly
7cf74ec442 set notBefore and renewalTime status fields in certificate readiness controller
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:23:42 +01:00
James Munnelly
cbe5f5dfb5 generated files
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:23:42 +01:00
James Munnelly
2d5901df3f pkg/apis: add 'notBefore' and 'renewalTime' fields to Certificate status
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:23:42 +01:00
James Munnelly
1d6424b8f2 Use 'clock' package in pkg/scheduler
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:23:42 +01:00
James Munnelly
281b9ffcbd add RenewBeforeExpiryDuration function
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-06-23 16:23:42 +01:00
jetstack-bot
197da0081f
Merge pull request #3017 from hzhou97/correctly_handle_keyEncoding
Encode private keys to PKCS1/PKCS8 as requested by user
2020-06-23 12:21:12 +01:00
Haoxiang Zhou
6c72193678 Handle keyEncoding for temporary Certificates
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-23 10:17:41 +01:00
Haoxiang Zhou
7e4fa1ab13 Removed unnecessary variables and 'AddToScheme's; Builder doesn't continue on error
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-19 10:29:42 +01:00
Haoxiang Zhou
a98240c6f9 Changed directory set-up for tests, review changes
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-18 16:47:10 +01:00
Haoxiang Zhou
5bcea49921 Issuing controller encodes private keys to PKCS1/PKCS8 as requested by user
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-18 15:26:14 +01:00
Haoxiang Zhou
12ef535648 Use webhook's scheme to read in objects in internal api version
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-18 10:22:25 +01:00
Haoxiang Zhou
c13d5b57d3 Corrected expected output of test
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-18 10:20:06 +01:00
jetstack-bot
c36c293053
Merge pull request #3001 from meyskens/fix-docker-arch-tag
Fix Docker architecture tag set by bazel
2020-06-18 10:05:07 +01:00
Haoxiang Zhou
a628f62f2c Changed flag to from-certificate-file
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-16 12:30:28 +01:00
Haoxiang Zhou
3b7284973c Wrtie key to file before creating CR and changed key file permission
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-16 12:24:18 +01:00
Haoxiang Zhou
1a01120fbd Make name of CR a required argument, changed tests accordingly
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-16 12:19:46 +01:00
Haoxiang Zhou
25a105c6b3 Add test for auto generated CR name; review changes
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-15 17:04:05 +01:00
Haoxiang Zhou
de787796b7 Review changes
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-15 14:22:55 +01:00
Maartje Eyskens
d8e09189b6 Update the ingress
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-06-12 10:52:44 +02:00
Haoxiang Zhou
5a5c3ce053 Change to only have -f flag
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-11 17:30:59 +01:00
Maartje Eyskens
ff2e0b26df Test 0.29.0
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-06-11 17:48:55 +02:00
Haoxiang Zhou
92c8d9c9dc Store pk files in tmp dir for clean up, clean up CR resources when tests fail
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-11 16:26:09 +01:00
jetstack-bot
abd13992c8
Merge pull request #2839 from meyskens/update-miekg-dns
Update to the latest miekg/dns
2020-06-11 15:26:23 +01:00
Maartje Eyskens
702f2d2d51 Fix Docker architecture tag set by bazel
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-06-11 15:41:49 +02:00
Haoxiang Zhou
bb9d95052c Add check for --output-key-file flag
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-11 14:28:39 +01:00
Haoxiang Zhou
023177108c Moved subcommand certificaterequest to its own package
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-11 14:00:29 +01:00
jetstack-bot
89c8fc3c8d
Merge pull request #2898 from diversario/2159-remove-custom-retryer
Remove custom retry logic from route53 package
2020-06-11 13:58:23 +01:00
Haoxiang Zhou
60ea8ff78f Review changes, update description and function name
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-11 13:32:46 +01:00
Haoxiang Zhou
e7f0f4fbef Add checks for files storing private key and clean them up
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-09 14:41:56 +01:00
Haoxiang Zhou
4b135540d4 Store private key in file, added flag to specify file name.
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-05 10:26:37 +01:00
jetstack-bot
46eaf3d1a4
Merge pull request #2923 from JoshVanL/new-metrics
Updates the metrics package + new metrics controller
2020-06-04 12:59:38 +01:00
jetstack-bot
0071338801
Merge pull request #2976 from meyskens/chart-nl
Add new line to clairify podLabels <-> podDNS
2020-06-04 12:27:38 +01:00
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
4dd0093cb6 Integration tests for create CR cmd
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-04 09:14:40 +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