-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: detect node port range from bundle
- Loading branch information
1 parent
31c04c4
commit b0994c9
Showing
4 changed files
with
115 additions
and
12 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package kubernetes | ||
|
||
const ( | ||
// DefaultServiceClusterIPRange is the fallback value for service ClusterIP | ||
// range of k8s API server configuration. This value is used when the cluster | ||
// cannot be detected from the bundle itself. This happens mostly for managed | ||
// k8s platforms like EKS, AKS which will not return API server pod in the list | ||
// of pods. | ||
DefaultServiceClusterIPRange = "10.0.0.0/12" | ||
|
||
// DefaultServiceNodePortRange is the fallback value for service node port | ||
// range of k8s API server configuration. This value is used when the cluster | ||
// cannot be detected from the bundle itself. This happens mostly for managed | ||
// k8s platforms like EKS, AKS which will not return API server pod in the list | ||
// of pods. | ||
DefaultServiceNodePortRange = "30000-32767" | ||
) |
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