华为云UCS-k8sblockendpointeditdefaultrole:策略实例示例

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

策略实例示例

以下策略实例展示了策略定义生效的资源类型。

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sBlockEndpointEditDefaultRole
metadata:
  name: block-endpoint-edit-default-role
spec:
  match:
    kinds:
      - apiGroups: ["rbac.authorization.k8s.io"]
        kinds: ["ClusterRole"]
support.huaweicloud.com/usermanual-ucs/ucs_01_0247.html