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

[monasca] add RBAC rules for monasca-agent and the cleanup job #403

Merged
merged 2 commits into from
Feb 27, 2018

Conversation

timothyb89
Copy link
Member

Adds RBAC rules based on the newest bits from the init charts. Note
that the RBAC flag has been renamed to remain consistent with Helm
community conventions as well as our other charts.

  • old: rbac.enabled=true
  • new: rbac.create=true

The agent will now attempt to create and use its own ServiceAccount
rather than applying a ClusterRole to the existing default
account. A new account, role, and role binding will also be created
for the cleanup job.

Additionally, override ServiceAccounts can be specified with the
following values:

  • agent.serviceAccount=...
  • cleanup.serviceAccount=...

The built-in ServiceAccount, Role/ClusterRole, and
RoleBinding/ClusterRoleBinding will not be created if a premade
serviceAccount is configured using this flag.

Signed-off-by: Tim Buckley timothy.jas.buckley@hpe.com

Adds RBAC rules based on the newest bits from the init charts. Note
that the RBAC flag has been renamed to remain consistent with Helm
community conventions as well as our other charts.

 - old: `rbac.enabled=true`
 - new: `rbac.create=true`

The agent will now attempt to create and use its own `ServiceAccount`
rather than applying a `ClusterRole` to the existing `default`
account. A new account, role, and role binding will also be created
for the cleanup job.

Additionally, override ServiceAccounts can be specified with the
following values:

 - `agent.serviceAccount=...`
 - `cleanup.serviceAccount=...`

The built-in `ServiceAccount`, `Role`/`ClusterRole`, and
`RoleBinding`/`ClusterRoleBinding` will not be created if a premade
serviceAccount is configured using this flag.

Signed-off-by: Tim Buckley <timothy.jas.buckley@hpe.com>
@timothyb89
Copy link
Member Author

I also disabled the TPR by default, which should work around #337

Signed-off-by: Tim Buckley <timothy.jas.buckley@hpe.com>
@timothyb89
Copy link
Member Author

I'm still seeing the agent fail in minikube due to #348 but the service accounts do seem to be applying correctly.

@timothyb89 timothyb89 merged commit 3b00b8c into master Feb 27, 2018
@timothyb89 timothyb89 deleted the monasca-cleanup-rbac branch February 27, 2018 21:29
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