Information in this document may be out of date
This document has an older update date than the original, so the information it contains may be out of date. If you're able to read English, see the English version for the most up-to-date information: kube-apiserver Admission (v1)
kube-apiserver Admission (v1)
资源类型
AdmissionReview
AdmissionReview 描述准入评审请求/响应。
| 字段 | 描述 |
|---|---|
apiVersionstring | admission.k8s.io/v1 |
kindstring | AdmissionReview |
requestAdmissionRequest
|
|
responseAdmissionResponse
|
|
AdmissionRequest
出现在:
AdmissionRequest 描述准入请求的 admission.Attributes。
| 字段 | 描述 |
|---|---|
uid [必需]k8s.io/apimachinery/pkg/types.UID
|
|
kind [必需]meta/v1.GroupVersionKind
|
|
resource [必需]meta/v1.GroupVersionResource
|
|
subResourcestring
|
|
requestKindmeta/v1.GroupVersionKind
|
例如,如果 Deployment 可以通过 apps/v1 和 apps/v1beta1 进行修改,并且 Webhook 注册了
参阅文档了解 Webhook 配置类型中 "matchPolicy" 字段的更多细节。 |
requestResourcemeta/v1.GroupVersionResource
|
例如,如果 Deployment 可以通过 apps/v1 和 apps/v1beta1 修改,并且 Webhook 注册了
参阅文档了解 Webhook 配置类型中 "matchPolicy" 字段的更多细节。 |
requestSubResourcestring
|
|
namestring
|
|
namespacestring
|
|
operation [必需]Operation
|
|
userInfo [必需]authentication/v1.UserInfo
|
|
objectk8s.io/apimachinery/pkg/runtime.RawExtension
|
|
oldObjectk8s.io/apimachinery/pkg/runtime.RawExtension
|
|
dryRunbool
|
|
optionsk8s.io/apimachinery/pkg/runtime.RawExtension
|
|
AdmissionResponse
出现在:
AdmissionResponse 描述准入响应。
| 字段 | 描述 |
|---|---|
uid [必需]k8s.io/apimachinery/pkg/types.UID
|
|
allowed [必需]bool
|
|
statusmeta/v1.Status
|
|
patch[]byte
|
|
patchTypePatchType
|
|
auditAnnotationsmap[string]string
|
|
warnings[]string
|
|
Operation
(string 的别名)
出现在:
Operation 是正在检查准入控制时资源操作的类型。
PatchType
(string 的别名)
出现在:
PatchType 是用于表示所变更对象的补丁类型。