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
cmd.Flags().StringVar(&flags.airgapBundle, "airgap-bundle", "", "Path to the air gap bundle. If set, the installation will complete without internet access.")
150
109
cmd.Flags().StringVar(&flags.dataDir, "data-dir", ecv1beta1.DefaultDataDir, "Path to the data directory")
151
-
cmd.Flags().StringVarP(&flags.licenseFile, "license", "l", "", "Path to the license file")
152
110
cmd.Flags().IntVar(&flags.localArtifactMirrorPort, "local-artifact-mirror-port", ecv1beta1.DefaultLocalArtifactMirrorPort, "Port on which the Local Artifact Mirror will be served")
153
111
cmd.Flags().StringVar(&flags.networkInterface, "network-interface", "", "The network interface to use for the cluster")
154
112
cmd.Flags().BoolVarP(&flags.assumeYes, "yes", "y", false, "Assume yes to all prompts.")
cmd.Flags().StringSliceVar(&flags.privateCAs, "private-ca", []string{}, "Path to a trusted private CA certificate file")
160
121
161
-
cmd.Flags().BoolVar(&flags.skipHostPreflights, "skip-host-preflights", false, "Skip host preflight checks. This is not recommended and has been deprecated.")
162
-
cmd.Flags().MarkHidden("skip-host-preflights")
163
-
cmd.Flags().MarkDeprecated("skip-host-preflights", "This flag is deprecated and will be removed in a future version. Use --ignore-host-preflights instead.")
122
+
iferr:=addProxyFlags(cmd); err!=nil {
123
+
returnerr
124
+
}
125
+
iferr:=addCIDRFlags(cmd); err!=nil {
126
+
returnerr
127
+
}
164
128
129
+
cmd.Flags().BoolVar(&flags.skipHostPreflights, "skip-host-preflights", false, "Skip host preflight checks. This is not recommended and has been deprecated.")
iferr:=cmd.Flags().MarkDeprecated("skip-host-preflights", "This flag is deprecated and will be removed in a future version. Use --ignore-host-preflights instead."); err!=nil {
Copy file name to clipboardExpand all lines: cmd/installer/cli/proxy.go
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,14 +13,18 @@ import (
13
13
"github.com/spf13/cobra"
14
14
)
15
15
16
-
funcaddProxyFlags(cmd*cobra.Command) {
16
+
funcaddProxyFlags(cmd*cobra.Command) error{
17
17
cmd.Flags().String("http-proxy", "", "HTTP proxy to use for the installation")
18
18
cmd.Flags().String("https-proxy", "", "HTTPS proxy to use for the installation")
19
19
cmd.Flags().String("no-proxy", "", "Comma-separated list of hosts for which not to use a proxy")
20
20
21
21
// the "proxy" flag is hidden and used in tests to detect the proxy from the env
22
22
cmd.Flags().Bool("proxy", false, "Use the system proxy settings for the install operation. These variables are currently only passed through to Velero and the Admin Console.")
0 commit comments