Documentation ¶
Index ¶
- Constants
- Variables
- func GetEnvKey(key string) string
- func InitBackupTargetToString() string
- func InitVMForceDeletionPolicy() string
- func IsRelease() bool
- func SetProvider(p Provider) error
- type BackupTarget
- type Overcommit
- type Provider
- type SSLCertificate
- type Setting
- type TargetType
- type VMForceDeletionPolicy
Constants ¶
View Source
const ( AdditionalCASettingName = "additional-ca" BackupTargetSettingName = "backup-target" VMForceDeletionPolicySettingName = "vm-force-deletion-policy" SupportBundleTimeoutSettingName = "support-bundle-timeout" HttpProxySettingName = "http-proxy" OvercommitConfigSettingName = "overcommit-config" SSLCertificatesSettingName = "ssl-certificates" VipPoolsConfigSettingName = "vip-pools" DefaultDashboardUIURL = "https://releases.rancher.com/harvester-ui/dashboard/latest/index.html" )
Variables ¶
View Source
var ( InjectDefaults string AdditionalCA = NewSetting(AdditionalCASettingName, "") APIUIVersion = NewSetting("api-ui-version", "1.1.9") // Please update the HARVESTER_API_UI_VERSION in package/Dockerfile when updating the version here. ClusterRegistrationURL = NewSetting("cluster-registration-url", "") ServerVersion = NewSetting("server-version", "dev") UIIndex = NewSetting("ui-index", DefaultDashboardUIURL) UIPath = NewSetting("ui-path", "/usr/share/harvester/harvester") UISource = NewSetting("ui-source", "auto") // Options are 'auto', 'external' or 'bundled' VolumeSnapshotClass = NewSetting("volume-snapshot-class", "longhorn") BackupTargetSet = NewSetting(BackupTargetSettingName, InitBackupTargetToString()) UpgradableVersions = NewSetting("upgradable-versions", "") UpgradeCheckerEnabled = NewSetting("upgrade-checker-enabled", "true") UpgradeCheckerURL = NewSetting("upgrade-checker-url", "https://harvester-upgrade-responder.rancher.io/v1/checkupgrade") LogLevel = NewSetting("log-level", "info") // options are info, debug and trace SSLCertificates = NewSetting(SSLCertificatesSettingName, "{}") SupportBundleImage = NewSetting("support-bundle-image", "rancher/support-bundle-kit:v0.0.4") SupportBundleImagePullPolicy = NewSetting("support-bundle-image-pull-policy", "IfNotPresent") SupportBundleTimeout = NewSetting(SupportBundleTimeoutSettingName, "10") // Unit is minute. 0 means disable timeout. DefaultStorageClass = NewSetting("default-storage-class", "longhorn") HTTPProxy = NewSetting(HttpProxySettingName, "{}") VMForceDeletionPolicySet = NewSetting(VMForceDeletionPolicySettingName, InitVMForceDeletionPolicy()) OvercommitConfig = NewSetting(OvercommitConfigSettingName, `{"cpu":1600,"memory":150,"storage":200}`) VipPools = NewSetting(VipPoolsConfigSettingName, "") AutoDiskProvisionPaths = NewSetting("auto-disk-provision-paths", "") )
Functions ¶
func InitBackupTargetToString ¶
func InitBackupTargetToString() string
func InitVMForceDeletionPolicy ¶
func InitVMForceDeletionPolicy() string
func SetProvider ¶
Types ¶
type BackupTarget ¶
type BackupTarget struct { Type TargetType `json:"type"` Endpoint string `json:"endpoint"` AccessKeyID string `json:"accessKeyId"` SecretAccessKey string `json:"secretAccessKey"` BucketName string `json:"bucketName"` BucketRegion string `json:"bucketRegion"` Cert string `json:"cert"` VirtualHostedStyle bool `json:"virtualHostedStyle"` }
func DecodeBackupTarget ¶ added in v1.0.0
func DecodeBackupTarget(value string) (*BackupTarget, error)
type Overcommit ¶ added in v1.0.0
type SSLCertificate ¶ added in v1.0.0
type TargetType ¶
type TargetType string
const ( S3BackupType TargetType = "s3" NFSBackupType TargetType = "nfs" )
type VMForceDeletionPolicy ¶
type VMForceDeletionPolicy struct { Enable bool `json:"enable"` // Period means how many seconds to wait for a node get back. Period int64 `json:"period"` }
func DecodeVMForceDeletionPolicy ¶
func DecodeVMForceDeletionPolicy(value string) (*VMForceDeletionPolicy, error)
Click to show internal directories.
Click to hide internal directories.