Documentation ¶
Index ¶
Constants ¶
View Source
const ( RUNNING_MODE_K8S = "k8s" RUNNING_MODE_DOCKER_COMPOSE = "docker-compose" )
Variables ¶
This section is empty.
Functions ¶
func OnOptionsChange ¶
func OnOptionsChange(oldO, newO interface{}) bool
Types ¶
type KubeServerOptions ¶
type KubeServerOptions struct { common_options.DBOptions common_options.CommonOptions TlsCertFile string `help:"File containing the default x509 cert file"` TlsPrivateKeyFile string `help:"Tls private key"` HttpsPort int `help:"The https port that the service runs on" default:"8443"` HelmDataDir string `help:"Helm data directory" default:"/opt/cloud/workspace/helm"` RepoRefreshDuration int `help:"Helm repo auto refresh duration, default 5 mins" default:"5"` EnableDefaultLimitRange bool `help:"Enable default namespace limit range" default:"false"` // hack: repo charts ignore regexp ChartIgnores []string `help:"Repo chart ignore regexp config, e.g. '^vm-repo:onecloud-.*:0.2.0$'"` // k8s dependencies DownloadFileURL string `help:"k8s depends on the binary file download url" default:"https://iso.yunion.cn/binaries"` // image repo ImageRepo string `help:"k8s depends on the image repo" default:"registry.cn-beijing.aliyuncs.com/yunionio"` // docker info DockerUser string `help:"docker login user name"` DockerPassword string `help:"docker login password"` DockerHost string `help:"docker login host"` // offline service configuration OfflineNginxServiceURL string `help:"offline nginx service url"` OfflineRegistryServiceURL string `help:"offline registry service url"` RunningMode string `help:"running mode" choices:"k8s|docker-compose" default:"k8s"` }
var (
Options KubeServerOptions
)
Click to show internal directories.
Click to hide internal directories.