Skip to content

RBAC Manager not logging errors or early termination #73

@tklovett

Description

@tklovett

We've now run into two failure scenarios during rbac-manager's Reconciliation run where it failed to log anything relevant to:

  • an error occurred
  • a resource could not be created
  • following resources in the same RBACDefinition were skipped
  • reconciliation terminated, and terminated early.

For example, the log output would end with

$ kubectl logs -n rbac-manager rbac-manager-7b499c48b6-tjzj8
time="2019-08-05T19:37:37Z" level=info msg=----------------------------------
time="2019-08-05T19:37:37Z" level=info msg="rbac-manager 0.7.0 running"
time="2019-08-05T19:37:37Z" level=info msg=----------------------------------
...
time="2019-08-05T19:54:18Z" level=info msg="Reconciling RBACDefinition my-rbac-definition"
$ kubectl ...

And no reference to error scenarios, for example:

My go fu is limited, but I think the Reconciler itself may have and return a useful err here, but the wrapping code does nothing with it here. Though I'm surprised I was seeing no error output from this code...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpinnedPrevents stalebot from removing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions