kubernetes-sidecar-injector icon indicating copy to clipboard operation
kubernetes-sidecar-injector copied to clipboard

mandatory (not optional) sidecars

Open jpuskar opened this issue 2 years ago • 1 comments

Hi, This is a cool tool!

Is there a way to make it fail to start the pod if the configmap doesn't exist? Right now the service logs an error but the pod continues to start.

Maybe something like an annotation: sidecar-injector.expedia.com/failAction: block

jpuskar avatar Sep 13 '22 17:09 jpuskar

Thanks for the suggestion. I am trying to think of the best way to achieved this. The pod would basically not even show up should it fail the admission, maybe this is acceptable, I'll take a look.

mvaalexp avatar Sep 21 '22 20:09 mvaalexp

I am going to close this out due to time.

mvaalexp avatar Jun 12 '24 19:06 mvaalexp