@@ -13,6 +13,7 @@ import (
1313 utilruntime "k8s.io/apimachinery/pkg/util/runtime"
1414 clientgoscheme "k8s.io/client-go/kubernetes/scheme"
1515 cliflag "k8s.io/component-base/cli/flag"
16+ "k8s.io/component-base/featuregate"
1617 "k8s.io/component-base/logs"
1718 logsv1 "k8s.io/component-base/logs/api/v1"
1819 "k8s.io/component-base/version/verflag"
@@ -32,6 +33,7 @@ import (
3233 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/capi/clustertopology/handlers"
3334 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common/pkg/server"
3435 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/controllers/namespacesync"
36+ "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/features"
3537 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/aws"
3638 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/docker"
3739 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/handlers/generic"
@@ -127,6 +129,12 @@ func main() {
127129 namespacesyncOptions .AddFlags (pflag .CommandLine )
128130 pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
129131 pflag .CommandLine .AddGoFlagSet (flag .CommandLine )
132+
133+ // Add feature gate flags.
134+ featureGate := featuregate .NewFeatureGate ()
135+ utilruntime .Must (featureGate .Add (features .DefaultFeatureGates ()))
136+ featureGate .AddFlag (pflag .CommandLine )
137+
130138 pflag .Parse ()
131139
132140 verflag .PrintAndExitIfRequested ()
0 commit comments