Skip to content

Commit 87c72a7

Browse files
committed
OCPEDGE-2038: Hide command in downstream build
1 parent dabd03d commit 87c72a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cmd/promotelearner.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/openshift/microshift/pkg/config"
88
"github.com/openshift/microshift/pkg/controllers"
9+
"github.com/openshift/microshift/pkg/version"
910
"github.com/spf13/cobra"
1011

1112
"k8s.io/klog/v2"
@@ -27,6 +28,11 @@ Use this command only after the learner node has fully caught up with the cluste
2728
return runPromoteLearner(cmd.Context())
2829
},
2930
}
31+
32+
if version.Get().BuildVariant != version.BuildVariantCommunity {
33+
cmd.Hidden = true
34+
}
35+
3036
return cmd
3137
}
3238

0 commit comments

Comments
 (0)