Skip to content

Commit

Permalink
improve tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
yutpeng committed Jul 27, 2024
1 parent 9ad4c4b commit 99b809f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pkg/cloudprovider/providers/oci/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (cp *CloudProvider) extractNodeAddresses(ctx context.Context, instanceID st

secondaryVnic, err := cp.client.Compute().GetSecondaryVNICForInstance(ctx, compartmentID, instanceID)
if err != nil {
return nil, errors.Wrap(err, "GetSecondaryVNICForInstance")
return addresses, nil
}

if secondaryVnic == nil {
Expand All @@ -124,6 +124,7 @@ func (cp *CloudProvider) extractNodeAddresses(ctx context.Context, instanceID st
addresses = append(addresses, api.NodeAddress{Type: api.NodeExternalIP, Address: ip.String()})
}
}

// Changing this can have wide reaching impact.
//
// if vnic.HostnameLabel != nil && *vnic.HostnameLabel != "" {
Expand Down
7 changes: 3 additions & 4 deletions pkg/cloudprovider/providers/oci/node_info_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ import (

// metadata labeling for placement info
const (
FaultDomainLabel = "oci.oraclecloud.com/fault-domain"
CompartmentIDAnnotation = "oci.oraclecloud.com/compartment-id"
OpenShiftNodeIdentifierLabel = "node.openshift.io/os_id"
timeout = 10 * time.Second
FaultDomainLabel = "oci.oraclecloud.com/fault-domain"
CompartmentIDAnnotation = "oci.oraclecloud.com/compartment-id"
timeout = 10 * time.Second
)

// NodeInfoController helps compute workers in the cluster
Expand Down

0 comments on commit 99b809f

Please sign in to comment.