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

send cluster ID as the organization GUID #2103

Merged
merged 4 commits into from
Jul 2, 2018
Merged

send cluster ID as the organization GUID #2103

merged 4 commits into from
Jul 2, 2018

Conversation

MHBauer
Copy link
Contributor

@MHBauer MHBauer commented Jun 8, 2018

cleaned up the imports as the gofmt tool wanted to move entries around

resolves #800

/cc @arschles @duglin

@k8s-ci-robot k8s-ci-robot requested review from arschles and duglin June 8, 2018 20:40
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 8, 2018
@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 8, 2018

two types of failures:

  1. for the wrong hardcoded guid
  2. we're not sending anything for org or space

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 8, 2018

2 is a total violation of the spec, so all of those tests should be failing anyway.

@MHBauer MHBauer closed this Jun 14, 2018
@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 14, 2018

/close I don't have time to fix this all the way down the stack. filed kubernetes-retired/go-open-service-broker-client#121 to fix it in the client.

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 14, 2018 via email

@MHBauer MHBauer reopened this Jun 15, 2018
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 15, 2018
@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 18, 2018

fixed and green. todos left for future tests to write and upstream clients to fix. good enough to close #800

Context: testContext,
Parameters: tc.expectedParams,
OrganizationGUID: testClusterID,
// TODO SpaceGUID: testNamespaceGUID,
Copy link
Contributor

Choose a reason for hiding this comment

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

What's up with the lingering TODO? If it needs to stick around, let's provide more info in the comment on what it's waiting for.

Farther down it's being set so I'm not sure why these can't be set too, but I really don't know what SpaceGUID is. 😀

Copy link
Contributor

Choose a reason for hiding this comment

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

@MHBauer any reason we're not just getting it to the Kube namespace guid? In CF, "Space" is similar to a Kube "namespace" - just a grouping mechanism for apps. Typically, people have a space for dev, test and prod.

Copy link
Contributor

@carolynvs carolynvs Jun 22, 2018

Choose a reason for hiding this comment

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

It doesn't look like there's any interesting setup required to make SpaceGUID work?

If we removed the comments and started setting SpaceGUID: testNamespaceGUID here just like we already do further below, it seems like it would just work (I haven't tried that). Since we are kind of touching this code (i.e. this PR is introducing TODOs), if it doesn't cause test failures, I'd prefer to fix these while we are in 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.

Every test with a TODO fails.

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 21, 2018

get namespace was never set up in any of the tests. Thus, out of scope for the issue. Apparently the fake thinks "" is a valid namespace name. Which it kind of is, but not when we're explicitly sending one.

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 22, 2018

Going to be captive on a plane for a couple hours. I'll take a look at the TODOs.

Otherwise, if I made sure to fix every problem I saw while solving another problem, I'd never finish anything. This is a completed unit of work as is. We can file an issue to follow up on the TODOs.

@carolynvs
Copy link
Contributor

if I made sure to fix every problem I saw while solving another problem, I'd never finish anything

My point was only that since your PR added the todos we should either fix them here, or comment them better so that someone else knows what should happen later. 😀 I am fine with a follow-up

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 22, 2018

issue #2151 created as followup

@MHBauer MHBauer self-assigned this Jun 23, 2018
@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 23, 2018

okay, maybe done.

@jberkhahn
Copy link
Contributor

Seems good.

MHBauer added 3 commits June 27, 2018 08:30
cleaned up the imports as the gofmt tool wanted to move entries around
 - default test namespace
 - prepend a get namesapce failure in namespace failure tests
@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 27, 2018

rebased

@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: mhbauer

Assign the PR to them by writing /assign @mhbauer 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

@MHBauer
Copy link
Contributor Author

MHBauer commented Jun 27, 2018

updated to address newly added tests.

@duglin
Copy link
Contributor

duglin commented Jul 2, 2018

LGTM

@duglin duglin added the LGTM1 label Jul 2, 2018
@jberkhahn
Copy link
Contributor

This still seems good to me.

@jberkhahn jberkhahn added the LGTM2 label Jul 2, 2018
@jpeeler jpeeler merged commit 50e4d85 into kubernetes-retired:master Jul 2, 2018
@MHBauer MHBauer deleted the cluster-id-for-org-guid branch July 2, 2018 23:03
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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change what we send for org, space and context
7 participants