Skip to content

Commit 9b78c8d

Browse files
Merge pull request #5788 from ggiguash/disable-csi-upstream
NO-ISSUE: Disable CSI driver for community build variant
2 parents 728a9b4 + ada521a commit 9b78c8d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/components/storage.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,17 @@ import (
1919
"github.com/openshift/microshift/pkg/assets"
2020
"github.com/openshift/microshift/pkg/config"
2121
"github.com/openshift/microshift/pkg/config/lvmd"
22+
"github.com/openshift/microshift/pkg/version"
2223
)
2324

2425
func startCSIPlugin(ctx context.Context, cfg *config.Config, kubeconfigPath string) error {
26+
// Community builds should deploy upstream CSI drivers, e.g. TopoLVM, etc.
27+
// LVMS is not available without pull-secret access.
28+
if version.Get().BuildVariant == version.BuildVariantCommunity {
29+
klog.Warningf("CSI driver deployment is disabled for community builds")
30+
return nil
31+
}
32+
2533
if !cfg.Storage.IsEnabled() {
2634
klog.Warningf("CSI driver deployment disabled, persistent storage will not be available")
2735
return nil

0 commit comments

Comments
 (0)