Skip to content

Fix clusterrolestemplatebinding#32

Open
kkedbi wants to merge 1 commit intorancher:mainfrom
kkedbi:fixed-clusterroletemplatebinding
Open

Fix clusterrolestemplatebinding#32
kkedbi wants to merge 1 commit intorancher:mainfrom
kkedbi:fixed-clusterroletemplatebinding

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