forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve internal route error message on Kubernetes
- return a meaningful error for now when a user attempts to create an internal route when running on Kubernetes -- eventually this can be removed once internal routes are supported - no longer allocate VIPs when creating an internal route and running on Kubernetes -- these were only used for Istio on BOSH and have no purpose on Kubernetes - related issue cloudfoundry#1928 [#175420211](https://www.pivotaltracker.com/story/show/175420211) Co-authored-by: Tim Downey <[email protected]> Co-authored-by: Piyali Banerjee <[email protected]>
- Loading branch information
1 parent
8c07baf
commit fed6547
Showing
7 changed files
with
139 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,6 +147,10 @@ def protocols | |
['http'] | ||
end | ||
|
||
def internal? | ||
!!internal | ||
end | ||
|
||
private | ||
|
||
def k8s_enabled? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters