Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1.22 KB

File metadata and controls

19 lines (14 loc) · 1.22 KB

Prerequiste

Deploy Image Scan Admission Webhook

run make deploy

Clean Image Scan Admission Webhook from Cluster

run make clean

Test

run make test

Limitation

There is a 30 seconds timeout for the webhook validation, it will be limited for the image scanner to return scanning result for a new image. This is because the image scanner need to download the image, unfold the image, and then conduct scanning. There is also a request to the upstream to make the webhook timeout configurable. So if there is new image to deploy for the first time, the admission controller will deny the request if no result returns in 30 seconds. However, due to complexity of the deployment workflow, the environment variable REJECT_IF_TIMEOUT in the YAML file is used to tune the admission controller timeout behavior.