Skip to content

Commit

Permalink
use new lib location for featuregates
Browse files Browse the repository at this point in the history
Signed-off-by: Jamo Luhrsen <[email protected]>
  • Loading branch information
jluhrsen committed Jun 21, 2024
1 parent 8d42083 commit db31796
Show file tree
Hide file tree
Showing 4 changed files with 733 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cloudprovider/cloudprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
apifeatures "github.com/openshift/api/features"
configv1 "github.com/openshift/api/config/v1"
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
"net"
Expand Down Expand Up @@ -152,7 +153,7 @@ func NewCloudProviderClient(cfg CloudProviderConfig, platformStatus *configv1.Pl
CloudProvider: cp,
platformStatus: azurePlatformStatus,
nodeLockMap: make(map[string]*sync.Mutex),
azureWorkloadIdentityEnabled: featureGates.Enabled(configv1.FeatureGateAzureWorkloadIdentity),
azureWorkloadIdentityEnabled: featureGates.Enabled(apifeatures.FeatureGateAzureWorkloadIdentity),
}
case PlatformTypeAWS:
cloudProviderIntf = &AWS{
Expand Down
Loading

0 comments on commit db31796

Please sign in to comment.