1.3.6.5. Administrator 集群管理器无法创建自动化策略
具有集群范围角色绑定到 open-cluster-management:cluster-manager-admin
的用户无法创建自动化策略。若要修复此问题,您必须手动将角色添加到自动化策略中。
创建或更新集群角色(ClusterRole
),为 Ansible
资源向 cluster-manager-admin
角色添加规则。您的 YAML 可能会重新排序以下文件:
apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: add-ansible-rules labels: rbac.authorization.k8s.io/aggregate-to-ocm-cluster-manager-admin: "true" rules: - apiGroups: ["tower.ansible.com"] resources: ["ansiblejobs"] verbs: ["create","get", "list", "watch", "update", "delete", "deletecollection", "patch"]