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

Make svcat broker commands with --wait support namespaced brokers #2615

Merged

Conversation

jberkhahn
Copy link
Contributor

This PR is a

  • Feature Implementation
  • Bug Fix
  • Documentation

What this PR does / why we need it:
svcat broker commands with the --wait flag now wait for namespaced brokers

Which issue(s) this PR fixes
fixes #2593

Merge Checklist:

  • New feature
    • Tests
    • Documentation
  • SVCat CLI flag
  • Server Flag for config
    • Chart changes
    • removing a flag by marking deprecated and hiding to avoid
      breaking the chart release and existing clients who provide a
      flag that will get an error when they try to update

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 24, 2019
@jberkhahn jberkhahn changed the title Make broker commands with --wait support namespaced brokers Make svcat broker commands with --wait support namespaced brokers Apr 24, 2019
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 24, 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.

/lgtm

if timeout == nil {
notimeout := time.Duration(math.MaxInt64)
timeout = &notimeout
}
err = wait.PollImmediate(interval, *timeout,
func() (bool, error) {
broker, err = sdk.retrieveBroker(name)
Copy link
Contributor

Choose a reason for hiding this comment

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

this is really the key shift, from some internal name function to the name/id with scoping options added. both already existed and I guess continue to exist until some later refactor.

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

jboyd01 commented May 3, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jboyd01

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 May 3, 2019
@jberkhahn
Copy link
Contributor Author

/test pull-service-catalog-xbuild

@k8s-ci-robot k8s-ci-robot merged commit d0d107e into kubernetes-retired:master May 6, 2019
viviyww pushed a commit to viviyww/service-catalog that referenced this pull request May 10, 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.

broker --wait flag doesn't work for namespaced brokers
4 participants