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

Return dashboard url in responses to update service-instance requests #1901

Merged
merged 3 commits into from
Apr 12, 2018

Conversation

jberkhahn
Copy link
Contributor

This is a validation through implementation of OSB #437.

Also bumps pmorie/go-open-service-broker-client.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 2, 2018
Copy link
Contributor

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -4524,7 +4524,9 @@ func TestResolveReferencesNoClusterServicePlan(t *testing.T) {
func TestReconcileServiceInstanceUpdatePlan(t *testing.T) {
fakeKubeClient, fakeCatalogClient, fakeClusterServiceBrokerClient, testController, sharedInformers := newTestController(t, fakeosb.FakeClientConfiguration{
UpdateInstanceReaction: &fakeosb.UpdateInstanceReaction{
Response: &osb.UpdateInstanceResponse{},
Response: &osb.UpdateInstanceResponse{
Copy link
Contributor

Choose a reason for hiding this comment

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

We've added feature gates for other validating-through-implementation features - will you add one for this feature? Check out pkg/features.

@@ -536,6 +536,7 @@ func (c *controller) reconcileServiceInstanceUpdate(instance *v1beta1.ServiceIns
return c.processServiceInstanceOperationError(instance, readyCond)
}

instance.Status.DashboardURL = response.DashboardURL
Copy link
Contributor

Choose a reason for hiding this comment

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

feature gate can be tested here.

@jberkhahn jberkhahn force-pushed the return_dashboard_url branch from a51df74 to 519d068 Compare April 3, 2018 22:40
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 3, 2018
@jberkhahn
Copy link
Contributor Author

Updated this, moved the tests around.

@pmorie tell me what you think

Copy link
Contributor

@pmorie pmorie left a comment

Choose a reason for hiding this comment

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

Looks like some stuff is inadvertently commented out.

Also, would you write an integration test for this that demonstrates that the status.dashboardUrl changes?

@@ -536,6 +536,11 @@ func (c *controller) reconcileServiceInstanceUpdate(instance *v1beta1.ServiceIns
return c.processServiceInstanceOperationError(instance, readyCond)
}

if utilfeature.DefaultFeatureGate.Enabled(scfeatures.UpdateDashboardURL) {
// if response.DashboardURL != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to leave these commented out?

@jberkhahn jberkhahn force-pushed the return_dashboard_url branch from 519d068 to 2296487 Compare April 6, 2018 00:46
@jberkhahn
Copy link
Contributor Author

@pmorie cleaned this up, wrote some more tests. I'm not 100% sure I did the integration tests right, would appreciate another look.

Thanks!

Copy link
Contributor

@MHBauer MHBauer left a comment

Choose a reason for hiding this comment

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

import the new version of the lib, then use the new lib.

LGTM, but maybe see what @pmorie thinks if he has time.

@MHBauer MHBauer added the LGTM1 label Apr 12, 2018
Copy link
Contributor

@arschles arschles left a comment

Choose a reason for hiding this comment

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

LGTM2, this looks straightforward and tests look 👍

@arschles arschles added the LGTM2 label Apr 12, 2018
@arschles arschles merged commit 1d6b870 into kubernetes-retired:master Apr 12, 2018
@MHBauer MHBauer mentioned this pull request Apr 12, 2018
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/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.

6 participants