Open tahajahangir opened 2 years ago
Thanks for reporting. It is an interesting case: every component behaves properly as expected, but together they misbehave.
What would be the expected behaviour in this case?
Kopf tries to updated the last-handled-configuration
annotation, but the update fails with server-error.
I think kopf should recognize the admission web hook .... denied the request
errors and 1) stop retrying 2) logging this with warning (not error) level (since this is a user error, not an app error)
Long story short
Steps to reproduce: 1) Apply an invalid object (e.g. when operator is stopped, and
ValidatingWebhookConfiguration
is not present)2) Run the attached kopf code (simple admission webhook) (host of
WebhookServer
should be modified base on environemnt)kopf run kopf_test.py --all-namespaces
3) The server enters a retry loop, and prints an error after 10 retries.
Kopf version
1.35.3
Kubernetes version
v1.20.13
Python version
3.10.1
Code
Logs
Additional information
No response