Luca Comellini
bf6bbb19de
Bump k8s.io dependencies
...
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-05-18 21:55:47 -07:00
Tim Ramlot
d14ffca049
replace go.mod replace statements with require statements
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-12 14:38:32 +02:00
irbekrm
5ee7b50ca8
Bumps c/r to latest commit
...
To ensure that there is as little diff as possible with c/r 0.15
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-05-11 12:13:19 +01: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
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
8747adf629
fix feedback
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-05 18:08:29 +02:00
Tim Ramlot
f0871eb6b8
further standardise logging across components
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-05-05 18:08:29 +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
Michael Malov
99e23d5e93
Add support for json logging format
...
Signed-off-by: Michael Malov <14035243+malovme@users.noreply.github.com>
2023-05-05 18:01:16 +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
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
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
jetstack-bot
bfa7eaaf0d
Merge pull request #5766 from irbekrm/cainjector_limit_controllers
...
Cainjector limit controllers
2023-04-18 11:14:21 +01:00
irbekrm
e49c1f0a74
Code review feedback
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-04-18 10:36:28 +01: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
1d28b4f31c
Bump k8s.io dependencies
...
Signed-off-by: Luca Comellini <luca.com@gmail.com>
2023-04-07 10:36:47 +02: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
Maël Valais
e9f81ddc1c
go work sync
...
Signed-off-by: Maël Valais <mael@vls.dev>
2023-04-06 16:34:21 +02: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
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
irbekrm
56cf4dfd3c
Allows to modify configured injectable kinds for cainjector via flags
...
Also changes name of --watch-certs flag to --enable-certificate-data-source
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-02-01 11:43:00 +00:00
irbekrm
3aba8ed32d
Makes cainjector Certificate watch optional
...
Configurable via a flag, true by default
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-24 13:52:45 +00:00
irbekrm
4776597cb4
Remove the double cache mechanism for cainjector
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-23 17:38:46 +00:00
irbekrm
87bef52337
Fix cainjector's namespace flag
...
Ensures that when cainjector has the namespace flag passed, namespaced resource caching is scoped to that namespace
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-01-05 18:15:19 +00:00
Ashley Davis
fb231ab641
Remove bazel 🎉
...
This removes all .bazel and .bzl files, and a bunch of scripts relating
to bazel, now that it's been entirely replaced.
There are still a few places where traces could be removed, but this
removes the brunt of the bazel stuff that remains.
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-07-26 11:38:50 +01:00
David Bond
4a4dd03245
Switch leader election to use Lease objects
...
Previously, cert-manager supported both ConfigMap & Lease objects for leader election. This commit modifies
the leader-election code to now solely use Lease objects in both the controller & ca-injector. The related
RBAC for ConfigMap resources has also been removed.
This change means that you cannot upgrade to the version containing this commit from cert-manager 1.3.
Related to #3766
Signed-off-by: David Bond <davidsbond93@gmail.com>
2022-03-10 12:38:50 +00:00
joshvanl
0bba16e0f9
Adds empty feature set for cainjector. Parses feature gates in devel
...
script, and passes them on to each component
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2022-02-07 14:39:46 +00:00
Ashley Davis
3a055cc2f5
rename all uses of github.com/jetstack/cert-manager
...
This was done by running the following command twice:
```bash
grep -Ri "github.com/jetstack/cert-manager" . | \
cut -d":" -f1 | \
sort | \
uniq | \
xargs sed -i
"s/github.com\/jetstack\/cert-manager/github.com\/cert-manager\/cert-manager/"
```
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-02-02 09:08:31 +00:00
DiptoChakrabarty
b0e2264b60
add go linters
...
Signed-off-by: DiptoChakrabarty <diptochuck123@gmail.com>
2022-01-13 00:12:15 +05:30
irbekrm
f4452f1cfa
Fix some flag descriptions
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-12-31 09:15:32 +00:00
irbekrm
c58b73edeb
Pprof can be optionally run for cainjector
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-10-26 12:21:21 +03:00
joshvanl
64feb85490
Adds bazel to build and release cmctl, along with kubectl-cert_manager
...
binary
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
2021-10-14 15:49:46 +01:00
Johan Fleury
ef32714434
Make leader election defaults consistent
...
Signed-off-by: Johan Fleury <jfleury@arcaik.net>
2021-08-13 12:14:40 -04:00
Inteon
78d13787e6
remove duplicated error messages & cobra help messages on error
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-28 15:55:14 +02:00
Inteon
d430113666
remove os.Exit from cert-manager controller and make sure LeaderElection ReleaseOnCancel works
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-27 21:40:42 +02:00
Inteon
48e9c2bd16
exit with exit code 0 on cancel & release leader-election on cancel
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-27 19:43:08 +02:00
Inteon
d6cd6f457d
set correct exit codes when exiting
...
Signed-off-by: Inteon <42113979+inteon@users.noreply.github.com>
2021-07-22 12:57:08 +02:00
irbekrm
4413774944
Removes unused Bazel deps
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-06-01 08:49:30 +01:00
irbekrm
d79a058b14
Allow controlling whether cgo is enabled via flags to Bazel
...
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-06-01 08:47:06 +01:00
Tamal Saha
7b63788f52
Cleanup codegen script
...
Signed-off-by: Tamal Saha <tamal@appscode.com>
2021-05-17 08:11:19 -07:00
irbekrm
34fd9e9fef
Makes /cmd/cainjector/main more DRY
...
reuses util.ContextWithStopCh to create a context with cancel func
Signed-off-by: irbekrm <irbekrm@gmail.com>
2021-01-27 13:32:23 +00:00
Julien ALEXANDRE
f8fbea38b3
Add flags to configure cainjector leader election
...
This commit enables users to customize the behavior of the cainjector
regarding leader election by adding `--leader-election-lease-duration`,
`--leader-election-renew-deadline` and `--leader-election-retry-period`
flags. These flags are already available on the controller.
Prior to this change, the values of these options were inherited from
controller-runtime. This commit keeps the same defaults for the
cainjector, for backward compatibility, even though they differ from
those of the controller.
Signed-off-by: Julien ALEXANDRE <22328659+ndrpnt@users.noreply.github.com>
2020-12-19 18:00:54 +01: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
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
Richard Wall
c3e79865ca
Exit(1) and explain what causes the context to be cancelled
...
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-18 10:24:10 +01:00
Richard Wall
392ed06cfc
Explain why we start the two controllers in separate goroutines
...
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2020-09-18 10:21:21 +01:00