mirror of
https://github.com/cnrancher/kube-explorer.git
synced 2025-08-20 07:22:54 +00:00
The index page will be handled correctly if the `XFF` and `X-API-URL-PREFIX` are set properly.
35 lines
701 B
Go
35 lines
701 B
Go
package config
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var InsecureSkipTLSVerify bool
|
|
var SystemDefaultRegistry string
|
|
var APIUIVersion = "1.1.11"
|
|
var ShellPodImage string
|
|
|
|
func Flags() []cli.Flag {
|
|
return []cli.Flag{
|
|
cli.BoolFlag{
|
|
Name: "insecure-skip-tls-verify",
|
|
Destination: &InsecureSkipTLSVerify,
|
|
},
|
|
cli.StringFlag{
|
|
Name: "system-default-registry",
|
|
Destination: &SystemDefaultRegistry,
|
|
},
|
|
cli.StringFlag{
|
|
Name: "pod-image",
|
|
Destination: &ShellPodImage,
|
|
Value: "rancher/shell:v0.2.1-rc.7",
|
|
},
|
|
cli.StringFlag{
|
|
Name: "apiui-version",
|
|
Hidden: true,
|
|
Destination: &APIUIVersion,
|
|
Value: APIUIVersion,
|
|
},
|
|
}
|
|
}
|