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

feat: support cache resources configurable #7 #12

Closed yusank closed 1 year ago

yusank commented 1 year ago

What type of PR is this?

/kind feature

What this PR does / why we need it:

To improve performance of webhook and use less memory.

Which issue(s) this PR fixes:

Fixes #7

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

Add one new args pre-cache-resources to configure which resources to cache, for example:

... // other arguments 
--pre-cache-resources=Deployment/apps/v1,Replicas/apps/v1
likakuli commented 1 year ago

on go files?

yusank commented 1 year ago

what happen? where is my code