Richard Wall
e21a57a88c
Enable metrics server on the webhook
...
Signed-off-by: Richard Wall <richard.wall@venafi.com>
2024-07-19 17:04:52 +01:00
cert-manager-prow[bot]
055f08d67e
Merge pull request #7015 from inteon/support_duration_string
...
Support duration strings in config API
2024-05-17 13:19:52 +00:00
Tim Ramlot
b4dc162156
Complete validation logic for config API and obtain 100% coverage for its tests.
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-05-14 17:31:37 +02:00
Tim Ramlot
60324bcb5e
Add support for duration values in "Go time.ParseDuration" format.
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-05-14 17:31:23 +02:00
Tim Ramlot
cfe974b775
deduplicate shared config API structs
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-05-14 09:28:10 +02:00
Tim Ramlot
9db044b232
fix gci linter
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-04-29 13:47:25 +02:00
Erik Godding Boye
8f99f40cbb
Upgrade K8s dependencies to v0.30.0
...
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
2024-04-28 13:02:36 +02:00
Adam Talbot
a7f089b64c
feat: graduate gateway-api to beta and enable by default
...
Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
2024-04-25 17:05:58 +01:00
Tim Ramlot
a26e2dc21e
cleanup code
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-04-23 13:02:55 +02:00
Jason Costello
610a066fef
Adding missing boilerplate
...
Signed-off-by: Jason Costello <jason@jsnc.tl>
2024-04-21 15:12:02 -04:00
Jason Costello
b363fd9b3f
Applying API default tests to rest of configuration modules
...
Signed-off-by: Jason Costello <jason@jsnc.tl>
2024-04-21 09:15:38 -04:00
Jason Costello
f447eb1876
Fixing from goimports
...
Signed-off-by: Jason Costello <jason@jsnc.tl>
2024-04-11 18:00:12 -04:00
Jason Costello
2e30c87d31
Fixing boilerplate on test
...
Signed-off-by: Jason Costello <jason@jsnc.tl>
2024-04-11 17:29:22 -04:00
Jason Costello
bcac7c43cc
Tidying test + update defaults mode
...
Signed-off-by: Jason Costello <jason@jsnc.tl>
2024-04-11 17:18:18 -04:00
Jason Costello
a7e5df7182
Adding API defaults unit test + testfile fixture
...
Signed-off-by: Jason Costello <jason@jsnc.tl>
2024-04-08 18:27:46 -04:00
jetstack-bot
953d8b5478
Merge pull request #6277 from inteon/controller_configfile_fuzzer
...
ControllerConfiguration fuzzer, only set the value in case the random value is empty
2024-03-22 17:12:34 +01:00
Tim Ramlot
ad1847cc3c
prevent fuzzer from generating impossible configurations
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-03-05 19:37:23 +01:00
Tim Ramlot
620d6ff679
BUGFIX: cainjector leaderelection defaults were missing
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-03-05 19:21:35 +01:00
Tim Ramlot
1e8ec4a65f
Update internal/apis/config/webhook/types.go
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2024-02-22 11:29:05 +01:00
Diego Arce
83e0f95e58
fix: SecretName description for DynamicServingConfig
...
Signed-off-by: Diego Arce <diego@arce.cr>
2024-02-21 23:12:43 -06:00
Adam Talbot
d27fcc2762
refactor: refactored metrics server code into internal package
...
Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
2024-01-04 15:49:25 +00:00
Adam Talbot
eb5033c40f
feat: add validation for metrics tls config
...
Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
2024-01-02 15:25:41 +00:00
Adam Talbot
ae143c15f6
feat: add tls to metrics endpoint
...
Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
2023-12-27 17:15:00 +00:00
Adam Talbot
59184de02f
test: add tests for config validation functions
...
Signed-off-by: Adam Talbot <adam.talbot@venafi.com>
2023-12-21 08:58:02 +00:00
Allen Mun
9b09aa87a7
Add flag and field to customize leaf duration on dynamic certificates
...
Signed-off-by: Allen Mun <allen.mun@capitalone.com>
2023-12-13 15:45:52 -05:00
Tim Ramlot
e5f50002e1
introduce configfile for cainjector options
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-09-28 12:56:11 +02:00
Tim Ramlot
cf8e37291a
replace k8s.io/utils/pointer with k8s.io/utils/ptr
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-28 09:33:10 +02:00
Tim Ramlot
e55b03c127
Update the fuzzer so it only sets values in case the random value is an empty value for fields that will be defaulted.
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-17 13:17:12 +02:00
Tim Ramlot
80a3923fd2
use logsapi.LoggingConfiguration instead of logs.Options
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-17 12:51:19 +02:00
Tim Ramlot
31b5ed6620
Make webhook Logging options configurable using configfile.
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-17 12:00:50 +02:00
Tim Ramlot
e8b5b2e354
Fix bug in ControllerConfiguration's defaulting of logging config, where config would not be correctly defaulted in case a partial logging configuration is provided.
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-17 11:19:16 +02:00
Tim Ramlot
db1fcdabb1
add comment explaining port 0 behavior
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-16 11:08:36 +02:00
Tim Ramlot
b19d11d267
change the types of ports in the WebhookConfiguration:
...
internal: *int -> int32
public: *int -> *int32
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-15 20:53:58 +02:00
guiyong.ou
3d76c20f51
cleanup: some redundant code clean up
...
Signed-off-by: guiyong.ou <guiyong.ou@daocloud.io>
2023-08-14 17:36:25 +08:00
Tim Ramlot
f50167ce31
restructure the controller configfile
...
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2023-08-10 11:30:33 +02:00
Cody W. Eilar
282a6d58a9
Preserve internal types
...
- Needed to add custom conversion functions to handle conversions from
public facing types to internal ones.
Signed-off-by: Cody W. Eilar <ecody@vmware.com>
2023-07-27 16:44:38 -07:00
Cody W. Eilar
6212b63e51
Address the non-optional values in internal config
...
- This commit changes the internal config to have fewer number of
optional parameters. It changes the types to match the ones that are
already present in https://github.com/kubernetes/apimachinery/blob/master/pkg/apis/meta/v1/conversion.go
so that custom converters do not have to be written for types "int"
and "float32".
Signed-off-by: Cody W. Eilar <ecody@vmware.com>
2023-07-27 16:44:38 -07:00
Cody W. Eilar
1243fe285b
Add to ability to start controller with config file
...
Signed-off-by: Cody W. Eilar <ecody@vmware.com>
2023-07-27 16:44:38 -07: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
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
James Munnelly
df250307c2
Fix test failures
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-07 12:20:31 +00:00
James Munnelly
ea2d04e2c0
Add webhook-specific 'feature' package and wire it up through config
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2022-01-07 12:17:38 +00:00
James Munnelly
8f1fb874ed
Run update-codegen in module mode
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-17 18:13:44 +00:00
Richard Wall
4eedf4fcfd
Test conversion code using sample CRDs and remove conversion configuration from cert-manager CRDs
...
* Generate CRDs for the sample API types
* Allow alternative CRDs to be loaded into the envtest API server
* Override the conversion configuration of the CRDs
* Show webhook server logs in tests
* Simplify the loading of the test API CRDs
* Allow the ConversionHandler to be overridden in tests
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
2021-12-14 17:33:22 +00:00
James Munnelly
ce3f3fc1f2
Regenerate files
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-01 12:57:08 +00:00
James Munnelly
1a96d9f32d
config.cert-manager.io -> webhook.config.cert-manager.io
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-12-01 12:57:08 +00:00
James Munnelly
9fce2ba5b0
Move files to create config.webhook.cert-manager.io
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-11-26 15:15:44 +00:00
James Munnelly
d5133a1668
Run update-codegen.sh
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-11-26 14:12:54 +00:00
James Munnelly
48a5efea5d
Fix copyright headers
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-11-26 14:12:54 +00:00
James Munnelly
415ca56933
config API: fix up fuzz tests
...
Signed-off-by: James Munnelly <jmunnelly@apple.com>
2021-11-26 14:12:54 +00:00