We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dabd03d commit 87c72a7Copy full SHA for 87c72a7
pkg/cmd/promotelearner.go
@@ -6,6 +6,7 @@ import (
6
7
"github.com/openshift/microshift/pkg/config"
8
"github.com/openshift/microshift/pkg/controllers"
9
+ "github.com/openshift/microshift/pkg/version"
10
"github.com/spf13/cobra"
11
12
"k8s.io/klog/v2"
@@ -27,6 +28,11 @@ Use this command only after the learner node has fully caught up with the cluste
27
28
return runPromoteLearner(cmd.Context())
29
},
30
}
31
+
32
+ if version.Get().BuildVariant != version.BuildVariantCommunity {
33
+ cmd.Hidden = true
34
+ }
35
36
return cmd
37
38
0 commit comments