diff --git a/pkg/etcd/snapshot_controller.go b/pkg/etcd/snapshot_controller.go index b5e3be3225..295f0117e4 100644 --- a/pkg/etcd/snapshot_controller.go +++ b/pkg/etcd/snapshot_controller.go @@ -252,6 +252,10 @@ func (e *etcdSnapshotHandler) reconcile() error { } } + if len(snapshots) > 0 && snapshotConfigMap.Data == nil { + snapshotConfigMap.Data = map[string]string{} + } + // Ensure keys for existing snapshots for sfKey, esf := range snapshots { sf := snapshotFile{}