Skip to content

Commit

Permalink
Merge pull request #6918 from vbhargav875/oci-ocid-logic-modification
Browse files Browse the repository at this point in the history
Modify logic to look for ocid type prefix in OCI cloud provider builder
  • Loading branch information
k8s-ci-robot authored Jun 24, 2024
2 parents b9b8ab0 + 47486ed commit bd97dec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog/v2"
"strings"
)

// OciCloudProvider implements the CloudProvider interface for OCI. It contains an
Expand Down Expand Up @@ -134,7 +135,7 @@ func BuildOCI(opts config.AutoscalingOptions, do cloudprovider.NodeGroupDiscover
if err != nil {
klog.Fatalf("Failed to get pool type: %v", err)
}
if ocidType == npconsts.OciNodePoolResourceIdent {
if strings.HasPrefix(ocidType, npconsts.OciNodePoolResourceIdent) {
manager, err := nodepools.CreateNodePoolManager(opts.CloudConfig, do, createKubeClient(opts))
if err != nil {
klog.Fatalf("Could not create OCI OKE cloud provider: %v", err)
Expand Down

0 comments on commit bd97dec

Please sign in to comment.