config

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart added in v1.8.0

type Chart struct {
	Name           string
	TenantID       string
	ChartGroupName string
	// install options
	Version string
	// install options
	TargetCluster string
	// install options
	TargetNamespace string
	// install options
	// chartutil.ReadValues/ReadValuesFile
	Values chartutil.Values
}

type Config

type Config struct {
	ServerName                 string
	ListenAddr                 string
	NoUI                       bool
	Config                     string
	Force                      bool
	SyncProjectsWithNamespaces bool
	Replicas                   int
	Upgrade                    bool
	PrepareCustomK8sImages     bool
	PrepareCustomCharts        bool
	Kubeconfig                 string
	RegistryUsername           string
	RegistryPassword           string
	RegistryDomain             string
	RegistryNamespace          string
	CustomUpgradeResourceDir   string
	// CustomChartsName
	// when upgrading, it is chart tar file name under data/ directory
	// when installing, it is chart tar file name under data/expansions/ directory
	// default custom.charts.tar.gz
	CustomChartsName string
	// EnableCustomExpansion will enable expansion. default false
	EnableCustomExpansion bool
	// CustomExpansionDir path to expansions. default `data/expansions`
	CustomExpansionDir string
	PlatformApps       []PlatformApp
}

Config is the running configuration structure of the TKE controller manager.

func CreateConfigFromOptions

func CreateConfigFromOptions(serverName string, opts *options.Options) (*Config, error)

CreateConfigFromOptions creates a running configuration instance based on a given TKE apiserver command line or configuration file option.

type PlatformApp added in v1.8.0

type PlatformApp struct {
	Name   string
	Enable bool
	Chart  Chart
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL