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
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
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
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
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
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
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
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
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
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
4dd0093cb6
Integration tests for create CR cmd
...
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-06-04 09:14:40 +01:00
James Munnelly
81654a9195
ctl: add integration test case that exercises actual object conversion
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-05-29 14:09:25 +01:00
Maartje Eyskens
c867bc7d36
Implement MessageAcceptFunc
...
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-05-27 17:42:34 +02:00
JoshVanL
e465329b80
Revert vault free port and expose listener port from metrics server
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-26 23:01:55 +01:00
JoshVanL
9c9fe56f0b
Update new files to use 2020 copyright
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-21 10:52:56 +01:00
JoshVanL
fac8c30211
Ensures that integration tests use a free/or random port to start the
...
metrics server. Tests that do not depend on metrics, do not actually
start the server. Creates a shared test "FreePort" func. Fixes context
placement.
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-21 10:48:55 +01:00
JoshVanL
3e7f7eb87e
Expose Prometheus listen address as a controller command line flag
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-18 18:21:03 +01:00
JoshVanL
e936d2242c
Adds integration test for new metrics controller
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-05-18 17:45:12 +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
1bc930a484
Increases cover of ctl renew integration tests
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:57:45 +01:00
JoshVanL
28639c366b
Changes ctl renew integration test to only test for issuing condition
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:45 +01:00
JoshVanL
6b8cc687dc
Adds ctl renew integration test
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-30 12:55:39 +01:00
jetstack-bot
c0c74216d5
Merge pull request #2843 from JoshVanL/certificate-issuing-controller-temporary-certificate
...
Issuing controller temporary certificate support
2020-04-30 12:30:55 +01:00
JoshVanL
2c594d72a9
Adds ctl convert integration tests
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-28 11:00:56 +01:00
JoshVanL
7d1d94fedb
Adds issuing controller temporary certificate units tests
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-26 19:39:08 +01:00
James Munnelly
af9d957394
Don't rely on CertificateRequest name during e2e tests
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-21 09:49:32 +01:00
James Munnelly
e8cc2ba4ac
Fix selfsigned issuer unit tests
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
a9dd260e95
requestmanager: tidy up and add unit tests
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
James Munnelly
53fa3b70ab
Move trigger policies into separate package
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-20 15:08:31 +01:00
JoshVanL
38716d69ae
Adds issuing controller issuing integration test
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
JoshVanL
a6a8ee29e3
Moves issuing controller secret handler into secretsManager struct
...
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-04-15 16:16:08 +01:00
James Munnelly
cf7e344425
Export PolicyChain type
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 15:14:46 +01:00
James Munnelly
97b33abf11
Add missing boilerplate headers
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:27:25 +01:00
James Munnelly
1fc9981359
Fix up use of Kubernetes clientset after rebase
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:27:15 +01:00
James Munnelly
85cc080d79
Add trigger controller integration test
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-15 12:26:53 +01:00
James Munnelly
e88aab9953
Split with newlines
...
Signed-off-by: James Munnelly <james@munnelly.eu>
2020-04-07 14:35:51 +01:00