You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[diagnose] test service connectivity when no VPC endpoint exists (#12)
* [.gitpod] add devcontainer.json and automations.yaml
* Fix
* Only require private DNS for execute-api, as per our docs
* [diagnose] test service connectivity when no VPC endpoint exists
This helps for when central VPC endpoints are used, which exist in a separate VPC (not the one you are testing from)
* Add execute-api service check for main subnet
* Fix binding for api-endpoint and instance-ami
* Do not provide a default
Copy file name to clipboardExpand all lines: gitpod-network-check/cmd/root.go
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ type NetworkConfig struct {
24
24
PodSubnets []string
25
25
HttpsHosts []string
26
26
InstanceAMIstring
27
+
ApiEndpointstring
27
28
}
28
29
29
30
varnetworkConfig=NetworkConfig{LogLevel: "INFO"}
@@ -89,9 +90,10 @@ func init() {
89
90
networkCheckCmd.PersistentFlags().StringSliceVar(&networkConfig.MainSubnets, "main-subnets", []string{}, "List of main subnets")
90
91
networkCheckCmd.PersistentFlags().StringSliceVar(&networkConfig.PodSubnets, "pod-subnets", []string{}, "List of pod subnets")
91
92
networkCheckCmd.PersistentFlags().StringSliceVar(&networkConfig.HttpsHosts, "https-hosts", []string{}, "Hosts to test for outbound HTTPS connectivity")
92
-
bindFlags(networkCheckCmd, v)
93
93
networkCheckCmd.PersistentFlags().StringVar(&networkConfig.InstanceAMI, "instance-ami", "", "Custom ec2 instance AMI id, if not set will use latest ubuntu")
94
-
log.Infof("ℹ️ Running with region `%s`, main subnet `%v`, pod subnet `%v`, and hosts `%v`", networkConfig.AwsRegion, networkConfig.MainSubnets, networkConfig.PodSubnets, networkConfig.HttpsHosts)
94
+
networkCheckCmd.PersistentFlags().StringVar(&networkConfig.ApiEndpoint, "api-endpoint", "", "The Gitpod Enterprise control plane's regional API endpoint subdomain")
95
+
bindFlags(networkCheckCmd, v)
96
+
log.Infof("ℹ️ Running with region `%s`, main subnet `%v`, pod subnet `%v`, hosts `%v`, and api endpoint `%v`", networkConfig.AwsRegion, networkConfig.MainSubnets, networkConfig.PodSubnets, networkConfig.HttpsHosts, networkConfig.ApiEndpoint)
0 commit comments