Commit 438e8cd 1 parent 0727737 commit 438e8cd Copy full SHA for 438e8cd
File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -159,18 +159,7 @@ func (o *Options) validate() error {
159
159
}
160
160
}
161
161
162
- featureGates := genericclioptionsclusteradm .ConvertToFeatureGateAPI (
163
- genericclioptionsclusteradm .HubMutableFeatureGate , ocmfeature .DefaultHubRegistrationFeatureGates )
164
- managedClusterAutoApprove := false
165
- for _ , feature := range featureGates {
166
- if feature .Feature == "ManagedClusterAutoApproval" {
167
- if feature .Mode == "Enable" {
168
- managedClusterAutoApprove = true
169
- }
170
- }
171
- }
172
-
173
- if managedClusterAutoApprove {
162
+ if genericclioptionsclusteradm .HubMutableFeatureGate .Enabled ("ManagedClusterAutoApproval" ) {
174
163
// If hub registration does not accept awsirsa, we stop user if they also pass in a list of patterns for AWS EKS ARN.
175
164
176
165
if len (o .autoApprovedARNPatterns ) > 0 && ! sets .New [string ](o .registrationDrivers ... ).Has ("awsirsa" ) {
You can’t perform that action at this time.
0 commit comments