Giving a user project role access in the smaug cluster#
A namespace for the project should already be created before starting.
Create an OCP group#
The first step for giving you project role access should be to create an OCP group. After creating a OCP group you will add your github username to the group.
Documentation on creating an OCP group can be found here.
The directory that contains all of the OCP groups can be found here
After you create the group make sure to add your github username to the group by editing the
Give the group the appropriate rbac(roles and and rolebindings)#
After creating a OCP group you must give the group the appropriate roles and rolebindings.
Create a directory with the name of your OCP group here copy one of the other directories in that folder and use it as a template.
Once the folder is copied, edit the
rbac.yamlfile and change
spec.subjects.nameto the OCP group created in the previous instructions.
Add the OCP group to your project/namespace#
You have now created the OCP group. You must now add the OCP group to your namespace
Open the following file:
Add the path of the component that you created in
componentssection in the overlay
kustomization.yamlfile corresponding to the cluster you are deploying to. You can see examples of this here.