Skip to content

Niche Re-allocation Issue

Hello @alejandroi2cat ,

As you know, we can currently only have one codecoapp and its naming is restricted as well (we can not have another name then acm-swm-app). So in the case where the confidence did not change due to the cluster metrics not changing (KinD or such), and we had to delete the codecoapp and re-apply it for any testing or such reasons, the node recommendations won't be re-written again without deleting RL pod or so.

relevant code block with the potential issue:

    if decide_reallocation:
        #print(
        #    "Confidence of reallocation for ",
        #    pod_name,
        #    ": ",
        #    norm_output(new_confidence),
        #)
        print("Coming from reallocations")
        write_crd(values[3], values[4], new_confidence, node_names, values[5])
        # CAN BE ADJUSTED RESOURCES
        return [new_confidence, values[1], values[2], values[3], values[4], values[5]]
    else:
        return [old_confidence, values[1], values[2], values[3], values[4], values[5]]