Comments (3)
I just tried changing timeoutSeconds
to 31 and got this:
Error: cannot patch "cert-manager-webhook" with kind MutatingWebhookConfiguration: MutatingWebhookConfiguration.admissionregistration.k8s.io "cert-manager-webhook" is invalid: webhooks[0].timeoutSeconds: Invalid value: 31: the timeout value must be between 1 and 30 seconds && cannot patch "cert-manager-webhook" with kind ValidatingWebhookConfiguration: ValidatingWebhookConfiguration.admissionregistration.k8s.io "cert-manager-webhook" is invalid: webhooks[0].timeoutSeconds: Invalid value: 31: the timeout value must be between 1 and 30 seconds
This is leading me to believe 30 should really be a valid value. Happy to make a PR if folks agree.
from clusterlint.
@maelvls provided some additional details on the issue I logged against cert-manager:
There is this comment in kubelint's code:
Webhooks with TimeoutSeconds set: less than 1 or greater than or equal to 30 is bad.
and
TimeoutSeconds value should be set to a non-nil value (greater than or equal to 1 and less than 30). If the TimeoutSeconds value is set to nil and the cluster version is 1.13.*, users are unable to configure the TimeoutSeconds value and this value will stay at nil, breaking upgrades. It's only for versions >= 1.14 that the value will default to 30 seconds.
That combined with my experimentation above makes it pretty clear that 30 seconds is actually a valid value, and clusterlint should allow it.
from clusterlint.
I vaguely remember there was a "conflict" between 30 seconds used by a webhook and the default 30 seconds timeout of kubectl: if a webhook used a 30 seconds timeout, the default timeout from kubectl could "override" the webhook one, rendering failure policies of Ignore
ineffective.
@varshavaradarajan does that make sense, or am I completely off here?
from clusterlint.
Related Issues (20)
- Cluster upgrade issue with cert manager HOT 8
- Cluster linter messages point to missing docs section HOT 5
- Check if pods referencing dobs volumes are owned by a statefulset
- Pods referencing DOBS volumes don't support Rolling deployments HOT 4
- Missing doc on warn Pod referencing dobs volumes must be owned by statefulset HOT 8
- Warn about containers pulling from docker.pkg.github.com
- False positives for "volumes must be owned by statefulset" and "fully qualified image name"? HOT 1
- false positive for webhooks with TimeoutSeconds value greater than 29s HOT 2
- Fatal error when building clusterlint on Go 1.17 HOT 1
- Running the tool in-cluster ? HOT 1
- upgrade to 1.22.7-do.0, incompatible ingress not detected
- Official Docker image ?
- No version number provided
- should be able to retrieve storageClassName from annotation
- Admission control webhook check in the "basic" group HOT 6
- Admission control webhook check should check apiGroups HOT 4
- admission-controller-webhook-replacement check needs more details HOT 4
- Add a check for cronjobs with a concurrencyPolicy of Allow HOT 2
- Add resource requirements check to doks group HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clusterlint.