Commit Graph

153 Commits

Author SHA1 Message Date
Inteon
81e216eeba
wait for goroutines to end before exiting
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-23 15:30:26 +02:00
Inteon
769e057663
metrics server simplify
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-23 15:30:02 +02:00
Lars Lehtonen
dccda3b321
test/integration/acme: fix dropped error
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2021-07-13 04:39:04 -07:00
Inteon
e2ce115738
also reset ManagedFields in test
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-06 16:56:31 +02:00
Inteon
cd92bf321f
centralise testing api-server & remove custom implementation
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-06 16:13:44 +02:00
kit837
51fe108beb Fix metrics_controller integration test.
Signed-off-by: kit837 <66801824+kit837@users.noreply.github.com>
2021-06-15 19:26:55 +00:00
kit837
0f97e6d19d pass in clock.Clock for better test
Signed-off-by: kit837 <66801824+kit837@users.noreply.github.com>
2021-06-15 17:48:20 +00:00
irbekrm
e6b748047d Remove the default renewBefore value
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-06-11 10:03:12 +01:00
irbekrm
06f6b46f30 Implements feedback from code review
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-05-19 13:20:05 +01:00
irbekrm
bbfd2294f9 Integration test for ACME Orders controller
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-05-19 13:11:48 +01:00
irbekrm
d8c941da8e Refactors creation of ACME Orders controller
So that it easier used with the existing test framework and also is more similar to how most other controllers are created

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-05-19 13:11:18 +01:00
Tamal Saha
7b63788f52 Cleanup codegen script
Signed-off-by: Tamal Saha <tamal@appscode.com>
2021-05-17 08:11:19 -07:00
Tamal Saha
b1cb6422e4 Use controller-runtime v0.9.0-beta.0
Signed-off-by: Tamal Saha <tamal@appscode.com>
2021-05-17 08:11:19 -07:00
Lars Lehtonen
635dc187f5
test/integration/certificates: fix dropped error
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
2021-04-12 05:45:57 -07:00
joshvanl
109b3e0b28 Rename Wehook's API server host flag from --master to --api-server-host
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
joshvanl
f640f64fcb Update integration test framework to restart the API to share the
address with the webhook

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-26 17:26:28 +00:00
jetstack-bot
a8c75fab1a
Merge pull request #3773 from JoshVanL/certificate-revision-history-limit
Certificate revision history limit
2021-03-26 11:13:58 +00:00
joshvanl
d5ccbdb277 Fix test controller name of revision manager in integration test
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-23 15:58:35 +00:00
Maël Valais
71e707387a trigger-controller: refactor test, inject gatherer and policychain
Injecting the whole Gatherer struct was not necessary for testing
since DataForCertificate is now fully unit-tested. With that, we
can mock the Gatherer.Evaluate function. Since there is no reason
to inject a full Gatherer object into the trigger controller, I chose
to inject a simple policies.Func. I named the function "shouldReissue"
since this is exactly what this function does.

I also refactored the test cases to use the same gen.Certificate
that we use in the rest of the codebase.

Signed-off-by: Maël Valais <mael@vls.dev>
2021-03-23 13:55:11 +01:00
joshvanl
2a08d8a8df Adds integration tests for revision manager
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-15 14:54:34 +00:00
jetstack-bot
70c66e02a0
Merge pull request #3641 from JoshVanL/certificate-request-identity
CertificateRequest UserInfo fields
2021-03-15 14:26:15 +00:00
irbekrm
a89133b637 Better wording and wrap long comment lines.
Co-authored-by: Maël Valais <mael@vls.dev>
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-03-15 08:48:23 +00:00
irbekrm
8d5059b13e Updates Trigger controller integration tests
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-03-15 08:47:42 +00:00
joshvanl
b3cab7e265 Updates the CRDs with the Certificate Condition observedGeneration field
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-03-04 17:04:11 +00:00
joshvanl
4300da5fa2 Adds a sanity check to the CertificateRequest validation integration
tests to ensure that no error happens when applying a CertificateRequest
with identities set (they get modified during admission).

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-02-08 19:24:32 +00:00
irbekrm
1abc7107ca Passes a single context with cancel func to all the kubectl plugin commands
Signed-off-by: irbekrm <irbekrm@gmail.com>

Don't duplicate the existing ContextWithStopCh function

Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-01-27 13:06:34 +00:00
jetstack-bot
cdc53b65cb
Merge pull request #3500 from meyskens/update-copy
Update copyright to cert-manager project
2020-12-15 10:12:31 +00:00
Maartje Eyskens
ab0cd57dc5 Use The cert-manager Authors.
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-11 19:04:13 +01:00
jetstack-bot
2c521609de
Merge pull request #3477 from tharun208/feat/profiling
Added profiling for controller
2020-12-11 14:11:10 +00:00
Tharun
b4df9b3567 removed gorilla mux and used profiling util
Signed-off-by: Tharun <rajendrantharun@live.com>
2020-12-11 17:54:55 +05:30
Maartje Eyskens
1788a9d758 Update copyright to cert-manager project
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-08 19:04:49 +01:00
Maartje Eyskens
3a2f02f0e3 Fix old CRD reference
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-12-02 15:01:17 +01:00
Mateusz Gozdek
27fa2f1ec4
Fix various typos found by codespell
Found by running this command:

codespell -S .git,*.png,go.sum -L keypair,iam,ans,unknwon,tage,ths,creater

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
2020-11-07 14:55:13 +01:00
Mateusz Gozdek
8fc98a4422
test/integration/framework: simplify to avoid word "datas"
As it is being treated as a typo by codespell.

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
2020-11-07 14:53:55 +01:00
Haoxiang Zhou
f66da132fa Adapt tests to new default behaviour of convert cmd
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-28 15:45:36 +02:00
Haoxiang Zhou
46ab9178ed Change order of adding versions to scheme to change priority
Signed-off-by: Haoxiang Zhou <haoxiang.zhou@jetstack.io>
2020-08-28 15:44:53 +02:00
jetstack-bot
57034dc1e4
Merge pull request #3213 from hzhou97/add_more_events_output
Ctl command status certificate: Add Events of Issuer and Secret to output
2020-08-27 16:04:36 +01:00
jetstack-bot
647035a266
Merge pull request #3211 from meyskens/csr-extkey
Extended key usages into CSR
2020-08-27 15:33:37 +01:00
Maartje Eyskens
b319ff897b Implement feedback + improve logic
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-27 14:42:20 +02:00
Maartje Eyskens
e0749ad822 Implement feedback
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-27 13:02:18 +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
Maartje Eyskens
35583353b4 Remove a lost comment
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:40:13 +02:00
Maartje Eyskens
37fac6f6d8 Remove unused constants
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:38:48 +02:00
Maartje Eyskens
93855b79a4 Fix mismerge
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:24:30 +02:00
Maartje Eyskens
0f6bc5eb68 Move NS creation to individual tests
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:18:26 +02:00
Maartje Eyskens
14ea7c3f65 Update k8s toolchain to 0.19.0-rc.3
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-26 14:15:54 +02:00
Maartje Eyskens
1cd5c381b9 Fix boilerplate
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-25 14:56:08 +02:00
Maartje Eyskens
627b57fed5 Add validation for CR creation only to match Key usages with the CSR if both are set
Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-08-25 14:38:57 +02:00
JoshVanL
d3e27905eb
Remove bad error text output
Signed-off-by: JoshVanL <vleeuwenjoshua@gmail.com>
2020-08-21 10:48:21 +01:00