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

permission tiller within the wizard #14

Open
simbo1905 opened this issue Jan 13, 2019 · 3 comments
Open

permission tiller within the wizard #14

simbo1905 opened this issue Jan 13, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@simbo1905
Copy link
Contributor

Add this to the wizard:

oc policy add-role-to-user edit "system:serviceaccount:${TILLER_NAMESPACE}:tiller"

@simbo1905 simbo1905 self-assigned this Jan 13, 2019
@simbo1905 simbo1905 added the enhancement New feature or request label Jan 13, 2019
@simbo1905 simbo1905 added this to the v1.0 milestone Jan 13, 2019
@simbo1905
Copy link
Contributor Author

I have added a warning:

echo WARNING is will fail unless you have run: oc policy add-role-to-user edit "system:serviceaccount:${TILLER_NAMESPACE}:tiller"

there should be some logic to check if the role isn't there and if it isn't then add it.

@simbo1905 simbo1905 added the good first issue Good for newcomers label Jan 13, 2019
@simbo1905
Copy link
Contributor Author

The command oc describe rolebinding.rbac -n $(oc project --short) dumps out a lot including:

Name:         edit
Labels:       <none>
Annotations:  <none>
Role:
  Kind:  ClusterRole
  Name:  edit
Subjects:
  Kind            Name    Namespace
  ----            ----    ---------
  ServiceAccount  tiller  your-eng

The sections seem to be blank line delimiter.

@simbo1905
Copy link
Contributor Author

matching blank lines is a pain awk might be the thing https://stackoverflow.com/a/922522/329496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant