Skip to content

improve rbac integration tests#1764

Merged
nicks merged 1 commit into
masterfrom
nicks/minikubewatch
Jun 24, 2019
Merged

improve rbac integration tests#1764
nicks merged 1 commit into
masterfrom
nicks/minikubewatch

Conversation

@nicks

@nicks nicks commented Jun 24, 2019

Copy link
Copy Markdown
Contributor

Hello @jazzdan,

Please review the following commits I made in branch nicks/minikubewatch:

3d49718 (2019-06-21 19:29:12 -0400)
improve rbac integration tests

@nicks
nicks requested a review from jazzdan June 24, 2019 15:27
@nicks

nicks commented Jun 24, 2019

Copy link
Copy Markdown
Contributor Author

(the main change here is to have a ClusterRole that grants access to Nodes, so our service accounts can read the k8s runtime)

@nicks

nicks commented Jun 24, 2019

Copy link
Copy Markdown
Contributor Author

(we should check with customers with RBAC if they can read Nodes, otherwise we'll need to find some other way to detect runtime)

@jazzdan

jazzdan commented Jun 24, 2019

Copy link
Copy Markdown
Contributor

I know that some can't, @nicks but in those cases it uses the the default update strategy anyways so it hasn't mattered.

@jazzdan jazzdan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!


func (f *k8sFixture) createUser() {
f.runCommandSilently("kubectl", "apply", "-f", "access.yaml")
log.Printf("New kubeconfig: %s", f.kubeconfigPath)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👀

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this was deliberate!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

https://media1.tenor.com/images/a4b32543e32fcbb8cf42fbebd146e38e/tenor.gif?itemid=5502727

@nicks
nicks merged commit 91ab8fd into master Jun 24, 2019
@nicks
nicks deleted the nicks/minikubewatch branch June 24, 2019 19:41
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