openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)
https://openyurt.io
Apache License 2.0
1.72k stars 405 forks source link

[Question] YurtAppSet tweaks.patches error: doc is missing path: "/metadata/labels/test": missing value #2202

Open shyer opened 2 days ago

shyer commented 2 days ago

What happened: https://openyurt.io/zh/docs/next/user-manuals/workload/yurt-app-set#%E5%88%9B%E5%BB%BA-yurtappset kubectl create -f yurtappset_test.yaml

Error from server (Forbidden): error when creating "yurtappset_test.yaml": admission webhook "vyurtappset.kb.io" denied the request: add operation does not apply: doc is missing path: "/metadata/labels/test": missing value

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?: https://github.com/evanphx/json-patch/issues/138 https://github.com/KusionStack/kusion/pull/1274/files

Environment:

others /kind question