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
Copy file name to clipboardExpand all lines: gitpod-network-check/cmd/root.go
+2
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ type NetworkConfig struct {
23
23
MainSubnets []string
24
24
PodSubnets []string
25
25
HttpsHosts []string
26
+
InstanceAMIstring
26
27
}
27
28
28
29
varnetworkConfig=NetworkConfig{LogLevel: "INFO"}
@@ -89,6 +90,7 @@ func init() {
89
90
networkCheckCmd.PersistentFlags().StringSliceVar(&networkConfig.PodSubnets, "pod-subnets", []string{}, "List of pod subnets")
90
91
networkCheckCmd.PersistentFlags().StringSliceVar(&networkConfig.HttpsHosts, "https-hosts", []string{}, "Hosts to test for outbound HTTPS connectivity")
91
92
bindFlags(networkCheckCmd, v)
93
+
networkCheckCmd.PersistentFlags().StringVar(&networkConfig.InstanceAMI, "instance-ami", "", "Custom ec2 instance AMI id, if not set will use latest ubuntu")
92
94
log.Infof("ℹ️ Running with region `%s`, main subnet `%v`, pod subnet `%v`, and hosts `%v`", networkConfig.AwsRegion, networkConfig.MainSubnets, networkConfig.PodSubnets, networkConfig.HttpsHosts)
0 commit comments