k-cloud-labs / kinitiras

A programmable rule engine for k8s admission webhook
https://k-cloud-labs.github.io/kinitiras-doc
Apache License 2.0
158 stars 10 forks source link

can kinitiras inject sidecar by annotation? #21

Open j4ckstraw opened 4 days ago

github-actions[bot] commented 4 days ago

Please add a label from the following list: ['bug', 'documentation', 'duplicate', 'enhancement', 'good first issue', 'help wanted', 'invalid', 'question', 'size/L', 'size/M', 'size/S', 'wontfix']

likakuli commented 3 days ago

yes, we support to select resource by annotations

likakuli commented 3 days ago

just use it like a fieldSelector. e.g. metadata.annotations.uid

j4ckstraw commented 2 days ago

I want to implement a sidecar injection by annotation, for example: if annotation: xxx/sidecar=true, then inject a sidecar container. I check the examples directory, and find no given implement, Can you give me an example, thank you very much.