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
Bug 1868801: check-endpoints should use minimal credentials #931
Bug 1868801: check-endpoints should use minimal credentials #931
Conversation
sanchezl
commented
Aug 12, 2020
•
edited
edited
- create a kubeconfig for use by the check-endpoints tool when running in the kube-apiserver pod.
- use the kubeconfig.
Skipping CI for Draft Pull Request. |
/test all |
55092ca
to
c42deb5
Compare
@sanchezl: This pull request references Bugzilla bug 1868801, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/bugzilla refresh |
@sanchezl: This pull request references Bugzilla bug 1868801, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
2500092
to
05845b6
Compare
/retest |
/test e2e-aws-operator |
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: check-endpoints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
system:openshift:operator?:kube-apiserver-check-endpoints
Looks to see what fits best in operator.
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: check-endpoints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this part can be a clusterrole so you can re-use it.
Also, the name system:openshift:operator?:check-endpoints
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: check-endpoints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better name, you get the idea now.
05845b6
to
59635c3
Compare
/test e2e-aws-serial |
1 similar comment
/test e2e-aws-serial |
/test e2e-aws-serial |
1 similar comment
/test e2e-aws-serial |
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: system:openshift:controller:check-endpoints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be named with kube-apiserver in teh name to avoid conflicts, right?
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: system:openshift:controller:check-endpoints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs kube-apiserver in name to avoid conflict
Refresh: 15 * rotationDay, | ||
RefreshOnlyWhenExpired: refreshOnlyWhenExpired, | ||
CertCreator: &certrotation.ClientRotation{ | ||
UserInfo: &user.DefaultInfo{Name: "system:check-endpoints"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name it like a service account (double check this): system:serviceaccount:namespace:name
59635c3
to
4483fbe
Compare
/test e2e-aws-upgrade |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, sanchezl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@sanchezl: All pull requests linked via external trackers have merged: Bugzilla bug 1868801 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |