Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Update bind loop support for namespaced classes and plans #2159

Merged
merged 22 commits into from
Jul 2, 2018
Merged

Update bind loop support for namespaced classes and plans #2159

merged 22 commits into from
Jul 2, 2018

Conversation

jmrodri
Copy link
Contributor

@jmrodri jmrodri commented Jun 27, 2018

No description provided.

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 27, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: arschles

Assign the PR to them by writing /assign @arschles in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

if err != nil {
return nil, err
if instance.Spec.ClusterServiceClassSpecified() {

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: what is with all this extra space in the new block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can fix it if you want, it made it easier for me to read and see the if blocks especially when I was moving things around. But now that it's done I'd be happy to remove it if required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did it in controller_binding.go as well. Let me know if you really want me to fix this nit or not.

@@ -25,6 +25,7 @@ import (
utilfeature "k8s.io/apiserver/pkg/util/feature"

"bytes"
Copy link
Contributor

Choose a reason for hiding this comment

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

bytes should go up by net and fmt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wow, not sure why goimports didn't move that for me. It's usually really good at taking of that. I'll fix that.

if instance.Spec.ClusterServiceClassSpecified() {
if instance.Spec.ClusterServiceClassRef == nil || instance.Spec.ClusterServicePlanRef == nil {
// retry later
msg := fmt.Sprintf(`Binding cannot begin because ClusterServiceClass and ClusterServicePlan references for %s have not been resolved yet`, pretty.ServiceInstanceName(instance))
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty print the msg?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@n3wscott I'm not quite sure what you mean by that? :) not trying to obtuse, but clearly there is a pretty printer used that I missed, is there a good example of it being used elsewhere?

@n3wscott n3wscott added the LGTM1 label Jun 28, 2018
Copy link
Contributor

@jeremyrickard jeremyrickard left a comment

Choose a reason for hiding this comment

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

LGTM

@jeremyrickard jeremyrickard merged commit 443d7b2 into kubernetes-retired:master Jul 2, 2018
@jmrodri jmrodri deleted the bind-nsc-pr branch July 2, 2018 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. LGTM1 LGTM2 size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants