Documentation
¶
Index ¶
Constants ¶
const (
// EtcdConfigFileName is the key/filename of the etcd config inside the ConfigMap.
EtcdConfigFileName = "etcd.conf.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
EtcdbrctlImage string
StoreContainer string
StorePrefix string
BackupBucketsHostPath string
}
Config contains configuration for running etcdbrctl initialize before starting the bootstrap etcd.
The etcdbrctl-initialize init container is only added when this config is not nil.
func ConfigFromBackupDataPath ¶
ConfigFromBackupDataPath builds a Config from the local backup data path on the node and the etcdbrctl image. The path is expected to have the structure:
<backupBucketsRoot>/<bucketName>/<namespace>--<uid>/etcd-main/v2
func (*Config) ConfigMap ¶
ConfigMap returns the fully populated etcd-config ConfigMap for the etcdbrctl-initialize init container.
func (*Config) EtcdInitializeConfig ¶
EtcdInitializeConfig returns the etcd config YAML used during initialization.
func (*Config) InitContainer ¶
InitContainer returns the etcdbrctl-initialize init container spec.
The backup-restore initialization only ever runs for the main etcd (see ShouldRun and the caller in staticpods.go), hence the main etcd's data directory is used directly.