diff --git a/pkg/bootstrap/bootstrap.go b/pkg/bootstrap/bootstrap.go index 926f42e9c5..010d6b8418 100644 --- a/pkg/bootstrap/bootstrap.go +++ b/pkg/bootstrap/bootstrap.go @@ -75,7 +75,7 @@ func WriteToDiskFromStorage(files PathsDataformat, bootstrap *config.ControlRunt for pathKey, bsf := range files { path, ok := paths[pathKey] - if !ok { + if !ok || path == "" { continue } diff --git a/pkg/cluster/bootstrap.go b/pkg/cluster/bootstrap.go index 7ab422aaa7..8f74ae35d6 100644 --- a/pkg/cluster/bootstrap.go +++ b/pkg/cluster/bootstrap.go @@ -363,7 +363,7 @@ func (c *Cluster) ReconcileBootstrapData(ctx context.Context, buf io.ReadSeeker, for pk := range files { p, ok := paths[pk] - if !ok { + if !ok || p == "" { continue } @@ -393,7 +393,7 @@ func (c *Cluster) ReconcileBootstrapData(ctx context.Context, buf io.ReadSeeker, for pk := range files { p, ok := paths[pk] - if !ok { + if !ok || p == "" { continue }