Ashley Davis
9f1c1cf247
use a concrete cert-manager version for cmctl
...
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-05-10 15:45:45 +01:00
irbekrm
b094df3bd3
Add a comment about splitting this package
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-10 12:09:55 +01:00
irbekrm
97a3eb8697
Makes test framework accessible externally
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-10 12:09:35 +01:00
Ashley Davis
209c252005
Move webhook testing package to core module
...
This package was used by at least one external importer [1] and so the
change to make the webhook live in a separate package caused an issue
which @irbekrm reported on slack. [2]
This PR moves the webhook testing code into the core cert-manager module
so it'll be importable anywhere (albeit under a new name). This change
also requires moving the webhook options into the core cert-manager
module since they're required by the webhook testing logic.
[1] 268cd2fdba/test/env/env.go (L25)
[2] https://kubernetes.slack.com/archives/CDEQJ0Q8M/p1683650224483169
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-05-09 18:40:03 +01:00
jetstack-bot
3fee31c0c5
Merge pull request #6030 from inteon/remove_deprecated_2
...
Replace deprecated wait.PollImmediate
2023-05-09 15:31:55 +01:00
Tim Ramlot
e9c4cd9f3f
check that issuer is not nil before reading its field values on cleanup
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-09 15:21:46 +02:00
Tim Ramlot
f16a3f56d1
replace usage of wait.PollImmediate
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-09 15:20:45 +02:00
jetstack-bot
50ac858898
Merge pull request #6036 from irbekrm/fix_trivy_vulns
...
Fix trivy vulns
2023-05-09 11:09:48 +01:00
irbekrm
b8029dc758
Fix trivy vulnerabilities
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-09 09:51:09 +01:00
Tim Ramlot
d656b2d9da
replace deprecated PollImmediateUntil with PollUntilContextCancel
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-07 10:15:46 +02:00
Tim Ramlot
2687b02e3f
update dependencies and LICENSE files
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-05 18:08:42 +02:00
Tim Ramlot
5091a3bff4
use same logging flags for every cli and simplify flag logic
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-05 18:08:29 +02:00
irbekrm
7f0766e305
Update licenses
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-05 16:32:25 +01:00
irbekrm
0d64973359
Fix otel incompatibilities
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-05 16:32:25 +01:00
Luca Comellini
b52ed6303d
Bump sigs.k8s.io/controller-runtime
...
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-05-05 16:32:25 +01:00
Luca Comellini
1bfc131e6a
Bump sigs.k8s.io/controller-tools to v0.12.0
...
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-05-05 16:32:25 +01:00
Luca Comellini
a57c4abb14
Bump k8s.io dependencies
...
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-05-05 16:32:25 +01:00
jetstack-bot
a64088792d
Merge pull request #5991 from inteon/pr/JoshVanL/4810
...
Server Side Apply: Adds support for CA Injector controller
2023-05-05 14:21:07 +01:00
jetstack-bot
5035dda25e
Merge pull request #6006 from vidarno/cache-private-key-hash-on-issuer-status
...
Cache private key hash on issuer status
2023-05-05 08:05:07 +01:00
irbekrm
a45a8b3a39
Adds a package comment, fixes imports
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-04 12:53:50 +01:00
irbekrm
206b6def1e
Make external DNS webhook tests importable again
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-04 12:40:06 +01:00
vidarno
a1f156c2b6
Merge branch 'cert-manager:master' into cache-private-key-hash-on-issuer-status
...
Signed-off-by: vidarno <>
2023-05-02 11:58:18 +02:00
vidarno
92da674e9a
Update logic in function IsKeyCheckSumCached to compare private key with hash in status field of CRD instead of from Secret
...
Signed-off-by: vidarno <>
2023-04-29 09:13:54 +02:00
Tim Ramlot
349aaf666b
resolve feedback
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-28 15:07:28 +02:00
Tim Ramlot
29e22e3900
account for pod not yet existing
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-28 13:05:18 +02:00
Tim Ramlot
f69dc581ea
remove custom mount approle, since all approles are now custom mounts
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-28 13:05:18 +02:00
Tim Ramlot
42e6282d02
use cluster-wide shared Vault instance
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-28 13:05:18 +02:00
Tim Ramlot
927cef3c22
switch to SSA for cainjector
...
Co-authored-by: joshvanl <vleeuwenjoshua@gmail.com>
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-26 17:04:11 +02:00
Tim Ramlot
3ed79f9129
upgrade vault
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-25 09:22:19 +02:00
Richard Wall
b91e0531ed
Upgrade to Go 1.20
...
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2023-04-20 16:55:44 +01:00
Tim Ramlot
733d302b69
remove unnessary Wait check & remove unused function
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-13 18:27:39 +02:00
Tim Ramlot
ebe39934aa
vault test code cleanliness improvements
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-13 16:44:49 +02:00
Tim Ramlot
62310c3e06
run 'make verify-licenses'
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-11 21:59:19 +02:00
Luca Comellini
9219bc409b
Bump Helm to v3.11.2
...
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-04-11 11:39:37 -07:00
Tim Ramlot
7c037f2912
optimise QPS, Burst and concurrent-workers values for faster e2e tests
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-11 14:51:18 +02:00
jetstack-bot
1a10abdf0f
Merge pull request #5928 from cert-manager/ioutil
...
Remove ioutil
2023-04-07 14:07:43 +01:00
Tim Ramlot
415da885a1
remove ioutil
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-07 11:19:52 +02:00
Tim Ramlot
1d28b4f31c
Bump k8s.io dependencies
...
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-04-07 10:36:47 +02:00
jetstack-bot
54b7c232f5
Merge pull request #5924 from maelvls/gowork
...
Add a workspace file
2023-04-07 09:18:35 +01:00
Tim Ramlot
380359b586
run 'make update-licenses'
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-04-06 22:29:59 +02:00
jetstack-bot
50501d2f64
Merge pull request #5824 from irbekrm/controller_partial_metadata
...
Controller partial metadata
2023-04-06 15:38:02 +01:00
Maël Valais
e9f81ddc1c
go work sync
...
Signed-off-by: Maël Valais <mael@vls.dev>
2023-04-06 16:34:21 +02:00
irbekrm
8217ff8714
Adds some extra unit tests
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-04-05 16:28:14 +01:00
Ashley Davis
6ce6ae839e
separate binaries/tests into separate modules with minimal dependencies
...
also add gomod validation in CI, along with a cmrel version bump
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2023-04-05 10:30:39 +01:00
Maël Valais
9078730129
migrate tests: higher timeout to lower the number of false-positives
...
Signed-off-by: Maël Valais <mael@vls.dev>
2023-04-04 11:13:56 +02:00
irbekrm
7d592a8270
Swap upstream core informers factory with out wrapper
...
This does not actually change how the informers work. This also adds a partial metadata client to root context
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-03-22 09:03:16 +00:00
irbekrm
a7e2abe5fa
Allows secrets event handler predicate to accept partial metadata
...
This will only be needed by the SecretsFilteredCaching feature, but I cannot think of any harm by adding it to general path
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-03-22 09:03:16 +00:00
irbekrm
5d7614ddd4
Passes controller context into all NewController funcs
...
Instead of individual arguments. For readability and consistency.
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-03-22 09:03:16 +00:00
Tim Ramlot
f36c06f10d
move cmd/util/ to internal/cmd/util/, since it is also imported by packages outside of cmd/
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-02-28 12:38:59 +01:00
Maël Valais
aed8a2ec85
serviceAccountRef: auto-generate "aud" and hardcode "exp"
...
Signed-off-by: Maël Valais <mael@vls.dev>
2023-02-06 18:28:49 +01:00