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

Policy configmap working with kube-scheduler #76

Conversation

ravisantoshgudimetla
Copy link
Contributor

This PR adds

  • RBAC for system:kube-scheduler user to access configmaps in openshift-kube-scheduler namespace. This was not an issue before Rotate kubeconfig #62 merged but after that we have to add following roles/rolebindings.

/cc @sjenning

We are able to pick up configmap changes now.

I0321 23:06:23.187561 1 factory.go:1118] Creating scheduler from configuration: {{ } [{PodFitsHostPorts <nil>} {PodFitsResources <nil>} {NoDiskConflict <nil>} {NoVolumeZoneConflict <nil>} {MatchNodeSelector <nil>} {HostName <nil>}] [{LeastRequestedPriority 1 <nil>} {BalancedResourceAllocation 1 <nil>} {ServiceSpreadingPriority 1 <nil>} {EqualPriority 1 <nil>}] [] 0 false}
We can see above line in kube-scheduler logs.

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 21, 2019
@@ -146,6 +148,7 @@ func RunOperator(ctx *controllercmd.ControllerContext) error {
kubeInformersClusterScoped.Start(ctx.Done())
kubeInformersNamespace.Start(ctx.Done())
kubeInformersForNamespaces.Start(ctx.Done())
configInformers.Start(ctx.Done())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was something I missed last time.

@ravisantoshgudimetla
Copy link
Contributor Author

/test e2e-aws

@sjenning
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 22, 2019
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ravisantoshgudimetla, sjenning

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:
  • OWNERS [ravisantoshgudimetla,sjenning]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 12ced25 into openshift:master Mar 22, 2019
kind: Role
name: system:openshift:sa-listing-configmaps
subjects:
- kind: ServiceAccount
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The generated data is wrong. I missed two commits which is causing this PR to fail.

Note to myself: Add verify-generated bindata..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/cc @sjenning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants