fn get_compute_platform()

in nfm-controller/src/metadata/runtime_environment_metadata.rs [49:57]


    fn get_compute_platform() -> ComputePlatform {
        if env::var(super::k8s_metadata::ENV_EKS_CLUSTER_NAME).is_ok() {
            ComputePlatform::Ec2K8sEks
        } else if env::var(super::k8s_metadata::ENV_K8S_NODE_NAME).is_ok() {
            ComputePlatform::Ec2K8sVanilla
        } else {
            ComputePlatform::Ec2Plain
        }
    }