华为云UCS-k8sblockendpointeditdefaultrole:不符合策略实例的资源定义

时间:2024-01-05 16:50:38

不符合策略实例的资源定义

示例中ClusterRole的生效对象中有endpoints,不符合策略实例。

kind: ClusterRole
metadata:
  annotations:
    rbac.authorization.kubernetes.io/autoupdate: "true"
  creationTimestamp: null
  labels:
    kubernetes.io/bootstrapping: rbac-defaults
    rbac.authorization.k8s.io/aggregate-to-edit: "true"
  name: system:aggregate-to-edit
rules:
- apiGroups:
  - apps
  resources:
  - endpoints
  verbs:
  - create
  - delete
  - deletecollection
  - patch
  - update
support.huaweicloud.com/usermanual-ucs/ucs_01_0247.html