mirror of
https://github.com/kairos-io/provider-k3s.git
synced 2025-09-18 07:39:25 +00:00
* bump kairos sdk to v0.4.2 Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com> * create bind mounts for k3s data,conf dir if cluste root path is provided and is not root Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com> * fix version Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com> * fix version Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com> * fix workflow * fix: merge conflict * add precommit config * fix lint --------- Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
37 lines
1.3 KiB
Go
37 lines
1.3 KiB
Go
package constants
|
|
|
|
const (
|
|
EnableOpenRCServices = "Enable OpenRC Services"
|
|
EnableSystemdServices = "Enable Systemd Services"
|
|
InstallK3sConfigFiles = "Install K3s Configuration Files"
|
|
ImportK3sImages = "Import K3s Images"
|
|
)
|
|
|
|
// The following are keys provider-k3s supports if present in Cluster.ProviderOptions from the Kairos SDK.
|
|
const (
|
|
// K3s bind address
|
|
BindAddress string = "bind-address"
|
|
|
|
// If value == 'yes', provider-k3s will use etcd for its datastore.
|
|
// If value == 'no' and DatastoreEndpoint is not defined, the sqlite datastore will be used.
|
|
// If value == 'no' and DatastoreEndpoint is defined, a custom datastore will be used.
|
|
ClusterInit string = "cluster-init"
|
|
|
|
// A PostgreSQL, MySQL, NATS, or etcd connection string. Used to describe the connection to the datastore.
|
|
DatastoreEndpoint string = "datastore-endpoint"
|
|
|
|
// TLS Certificate Authority (CA) file used to help secure communication with the datastore.
|
|
DatastoreCaFile string = "datastore-cafile"
|
|
|
|
// TLS certificate file used for client certificate based authentication to your datastore.
|
|
DatastoreCertFile string = "datastore-certfile"
|
|
|
|
// TLS key file used for client certificate based authentication to your datastore.
|
|
DatastoreKeyFile string = "datastore-keyfile"
|
|
)
|
|
|
|
const (
|
|
ClusterRootPath = "cluster_root_path"
|
|
RunSystemdSystemDir = "/run/systemd/system"
|
|
)
|