From a9d5b64eb95dba75ec126dcdd97cb7b4dc0c8afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cgkazanci=E2=80=9D?= Date: Mon, 4 Nov 2024 11:00:22 +0000 Subject: [PATCH] checking the self managed node with label and the value --- cluster-autoscaler/cloudprovider/oci/common/oci_ref.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-autoscaler/cloudprovider/oci/common/oci_ref.go b/cluster-autoscaler/cloudprovider/oci/common/oci_ref.go index d8323f71671f..df5f3ec488e8 100644 --- a/cluster-autoscaler/cloudprovider/oci/common/oci_ref.go +++ b/cluster-autoscaler/cloudprovider/oci/common/oci_ref.go @@ -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 }