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

Bump OSB client lib #2689

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

jberkhahn
Copy link
Contributor

Also lock version of the osb client lib

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 15, 2019
@jberkhahn
Copy link
Contributor Author

/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 15, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jberkhahn

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 15, 2019
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 15, 2019
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.

Still not sure where the original test-namespace is coming from.

¯_(ツ)_/¯

/lgtm

ObjectMeta: metav1.ObjectMeta{
Name: namespace,
Namespace: namespace,
UID: "testnamespace1234",
Copy link
Contributor

Choose a reason for hiding this comment

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

The UID is specifically what was missing from the current implementation.

if r == nil {
return nil, UnexpectedActionError()
}
if req.ServiceID == "" || req.PlanID == "" || req.OrganizationGUID == "" || req.SpaceGUID == "" {
return nil, RequiredFieldsMissingError()
Copy link
Contributor

Choose a reason for hiding this comment

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

we're trying to avoid hitting this check.

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2019
@@ -748,6 +748,7 @@ func newControllerTestTestController(ct *controllerTest) (
// create a fake kube client
fakeKubeClient := &fake.Clientset{}
fakeKubeClient.Lock()
prependGetNamespaceReaction(fakeKubeClient, "test-namespace")
Copy link
Contributor

Choose a reason for hiding this comment

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

name = "github.com/pmorie/go-open-service-broker-client"
packages = [
"v2",
"v2/fake",
"v2/generator",
]
pruneopts = "NUT"
revision = "6988c0983446576f2cefc90112028a66e6137233"
revision = "a894d21a6d93b2b01b434b2226d806cc1240f79d"
Copy link
Contributor

Choose a reason for hiding this comment

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

you should lock that revision in Gopkg.toml file,

[[constraint]]
  name = "github.com/pmorie/go-open-service-broker-client"
  revision = "a894d21a6d93b2b01b434b2226d806cc1240f79d"

thanks to that executing dep ensure -v will not replace that automatically with new version in the future.

@mszostok
Copy link
Contributor

@MHBauer what u mean by saying "Still not sure where the original test-namespace is coming from."?

@mszostok
Copy link
Contributor

/test pull-service-catalog-integration

ObjectMeta: metav1.ObjectMeta{
Name: namespace,
Namespace: namespace,
UID: "testnamespace1234",
Copy link
Contributor

@mszostok mszostok Aug 16, 2019

Choose a reason for hiding this comment

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

you need to do that also here:
https://github.com/kubernetes-sigs/service-catalog/blob/master/pkg/controller/case_test.go#L87-L91

sth like:

import "k8s.io/apimachinery/pkg/util/uuid"

k8sClient.CoreV1().Namespaces().Create(&corev1.Namespace{
		ObjectMeta: metav1.ObjectMeta{
			Name: testNamespace,
			UID:  uuid.NewUUID(), // fake clientset doesn't  duplicate server-side behavior like uid assignment
		},
	})

@MHBauer
Copy link
Contributor

MHBauer commented Aug 26, 2019

@mszostok while debugging #2683 I printed out the namespaces when they were being searched, and "test-namespace" was always present, and an instance was added on each iteration. I did not track down where that was coming from.

@k8s-ci-robot k8s-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2019
@@ -25,6 +25,9 @@ import (
"testing"
"time"

"sync"

"github.com/google/uuid"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"github.com/google/uuid"
"k8s.io/apimachinery/pkg/util/uuid"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

woops

@jberkhahn
Copy link
Contributor Author

/test pull-build-all-images-for-ppc64le

- lock dependency version to a894d21a6d93b2b01b434b2226d806cc1240f79d
@jberkhahn jberkhahn removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 30, 2019
@jberkhahn
Copy link
Contributor Author

/test pull-build-all-images-for-ppc64le

1 similar comment
@jberkhahn
Copy link
Contributor Author

/test pull-build-all-images-for-ppc64le

@mszostok
Copy link
Contributor

mszostok commented Sep 3, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 3, 2019
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Sep 3, 2019

@jberkhahn: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-service-catalog-integration f3b2f3f link /test pull-service-catalog-integration

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot merged commit 764c1be into kubernetes-retired:master Sep 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

4 participants