admission-control

安装量: 797
排名: #6642

安装

npx skills add https://github.com/grafana/skills --skill admission-control

Admission Control Admission control intercepts resource create/update requests before they are persisted. In grafana-app-sdk there are two types: Validation — accept or reject a request; cannot modify the resource Mutation — modify the resource before it is persisted (e.g. set defaults, normalize fields) The app business logic for admission is identical whether the app runs as a standalone operator or inside grafana/apps . The only difference is the runtime: standalone apps stand up their own webhook server; grafana/apps apps have admission auto-registered as a Kubernetes plugin. Getting Stubs For standalone apps, if pkg/app/app.go does not yet exist, a stub App can be generated with: grafana-app-sdk project component add operator This creates scaffolded simple.App which admission handlers can be added to for each kind in ManagedKinds . Show more

返回排行榜