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

Fix clusterrolestemplatebinding #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kkedbi
Copy link

@kkedbi kkedbi commented Feb 28, 2024

The clusterroletemplatebinding need the management cluster name which is generated in the source code of Rancher.
The lookup will directly fetch the management cluster name.

The if condition is to skip the creation on the first deployment of the App (rke2 cluster template) as the management cluster name and namespace are not created yet by Rancher.

Also adding $member.roleTemplateName to the name of ClusterRoleTemplateBinding to allow assignments of multiples roles to the same user.

…on is to avoid error on first deployment as they doesnt exists yet
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.

1 participant