Skip to content

Conversation

@nookala
Copy link
Contributor

@nookala nookala commented May 8, 2025

Check if route shared with space and don't throw error if shared

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:
    If the route is shared with the space don't throw error
  • An explanation of the use cases your change solves
    Given org org1 with space space org org2 with space space2:

cf push dora with no manifest (so default-route is used)
cf share-route thawing.app-runtime-interfaces.ci.cloudfoundry.org --hostname dora -o org2 -s space2
this will return OK, thinking the spaces are equal, though it wont actually be moved
NOTE: The space names do not have to be the same
cf target -o org2 -s space2
cf push dora again
Observe the error: Routes cannot be mapped to destinations in different spaces

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@Samze Samze merged commit 67eb5cf into cloudfoundry:main May 14, 2025
12 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request May 14, 2025
Changes in cloud_controller_ng:

- Can't push apps with app manifests if routes were shared
    PR: cloudfoundry/cloud_controller_ng#4344
    Author: Sriram Nookala <snookala@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants