You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/hubagent/options/options.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,8 @@ type Options struct {
79
79
EnableV1Alpha1APIsbool
80
80
// EnableV1Beta1APIs enables the agents to watch the v1beta1 CRs.
81
81
EnableV1Beta1APIsbool
82
+
// EnableClusterInventoryAPIs enables the agents to watch the cluster inventory CRs.
83
+
EnableClusterInventoryAPIsbool
82
84
// ForceDeleteWaitTime is the duration the hub agent waits before force deleting a member cluster.
83
85
ForceDeleteWaitTime metav1.Duration
84
86
}
@@ -96,6 +98,7 @@ func NewOptions() *Options {
96
98
ConcurrentResourceChangeSyncs: 1,
97
99
MaxFleetSizeSupported: 100,
98
100
EnableV1Alpha1APIs: false,
101
+
EnableClusterInventoryAPIs: false,
99
102
}
100
103
}
101
104
@@ -135,6 +138,7 @@ func (o *Options) AddFlags(flags *flag.FlagSet) {
135
138
flags.IntVar(&o.MaxFleetSizeSupported, "max-fleet-size", 100, "The max number of member clusters supported in this fleet")
136
139
flags.BoolVar(&o.EnableV1Alpha1APIs, "enable-v1alpha1-apis", false, "If set, the agents will watch for the v1alpha1 APIs.")
137
140
flags.BoolVar(&o.EnableV1Beta1APIs, "enable-v1beta1-apis", true, "If set, the agents will watch for the v1beta1 APIs.")
141
+
flags.BoolVar(&o.EnableClusterInventoryAPIs, "enable-cluster-inventory-apis", false, "If set, the agents will watch for the ClusterInventory APIs.")
138
142
flags.DurationVar(&o.ForceDeleteWaitTime.Duration, "force-delete-wait-time", 15*time.Minute, "The duration the hub agent waits before force deleting a member cluster.")
0 commit comments