mirror of
https://github.com/rancher/rke.git
synced 2025-09-09 02:51:15 +00:00
Fix etcd snapshot
This commit is contained in:
committed by
Alena Prokharchyk
parent
deb3518d78
commit
f0572f48b4
@@ -129,7 +129,10 @@ func (c *Cluster) setClusterServicesDefaults() {
|
||||
c.Services.Etcd.Image = c.SystemImages.Etcd
|
||||
|
||||
// enable etcd snapshots by default
|
||||
c.Services.Etcd.Snapshot = DefaultEtcdSnapshot
|
||||
if c.Services.Etcd.Snapshot == nil {
|
||||
defaultSnapshot := DefaultEtcdSnapshot
|
||||
c.Services.Etcd.Snapshot = &defaultSnapshot
|
||||
}
|
||||
|
||||
serviceConfigDefaultsMap := map[*string]string{
|
||||
&c.Services.KubeAPI.ServiceClusterIPRange: DefaultServiceClusterIPRange,
|
||||
|
Reference in New Issue
Block a user