Skip to content

Conversation

@deads2k
Copy link
Contributor

@deads2k deads2k commented Sep 16, 2015

Adds a diagnostic test to see if the cluster-roles are up to date. It produces output like:

[Note] Running diagnostic: ClusterRoles
       Description: Check that the ClusterRoles are up-to-date

ERROR: [ClusterRolesDiagnostic1005 from diagnostic ClusterRoles@openshift/origin/pkg/diagnostics/cluster/roles.go:85]
       clusterrole/basic-user has changed and the existing role does not have enough permissions.

or

[Note] Running diagnostic: ClusterRoles
       Description: Check that the ClusterRoles are up-to-date

WARN:  [ClusterRolesDiagnostic1003 from diagnostic ClusterRoles@openshift/origin/pkg/diagnostics/cluster/roles.go:80]
       clusterrole/basic-user has changed, but the existing role covers the new role.

@sosiouxme ptal. Are recommendations simply embedded directly in the error message?

@sosiouxme
Copy link
Member

@deads2k yes, explanations and recommendations are just embedded in the error message. What would someone want to do if they encountered these?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adjust godoc here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adjust godoc here

done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"is has"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"is has"

fixed

@sosiouxme
Copy link
Member

Aside from the nit and the test failure, LGTM. Thanks!

@deads2k
Copy link
Contributor Author

deads2k commented Sep 17, 2015

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3345/) (Image: devenv-fedora_2361)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to a7a341d

openshift-bot pushed a commit that referenced this pull request Sep 17, 2015
@openshift-bot openshift-bot merged commit 44265d3 into openshift:master Sep 17, 2015
@deads2k deads2k deleted the roles-diagnostics branch November 5, 2015 15:04
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.

3 participants