Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKS-3173: Use cape-controller-manager ServiceAccount & fix elfMachineTemplate permissions #186

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

huaqing1994
Copy link
Contributor

ticket

[SKS-3173] [CAPE] cape-controller 和 cape-ip-controller 混用了 RBAC 权限 - Jira
cape-controller 和 cape-ip-controller 都是用 default sa,导致它们的 RBAC 混用了。

changed

  • 使用 cape-controller-manager ServiceAccount
  • 添加 elfmachinetemplate 权限

test

生成的 manifests:
image
image
image
在未添加 elfmachinetemplate 时修改 elfmachine,webhook 会报错无权限:
image
添加 elfmachinetemplate 后再修改,正确报错:
image

@huaqing1994 huaqing1994 merged commit 95280ce into master Nov 13, 2024
1 check passed
@huaqing1994 huaqing1994 deleted the huaqing/elfmachinetemplate branch November 13, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants