Skip to content

Commit

Permalink
checking the self managed node with label and the value
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnc committed Nov 4, 2024
1 parent e456e7e commit a9d5b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-autoscaler/cloudprovider/oci/common/oci_ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NodeToOciRef(n *apiv1.Node) (OciRef, error) {
PrivateIPAddress: getNodeInternalAddress(n),
PublicIPAddress: getNodeExternalAddress(n),
Shape: getNodeShape(n),
IsNodeSelfManaged: n.Labels["oci.oraclecloud.com/node.info.byon"] != "",
IsNodeSelfManaged: n.Labels["oci.oraclecloud.com/node.info.byon"] == "true",
}, nil
}

Expand Down

0 comments on commit a9d5b64

Please sign in to comment.