use of com.netflix.spinnaker.clouddriver.kubernetes.v1.deploy.description.servergroup.KubernetesResourceDescription in project halyard by spinnaker.
the class KubernetesV1DistributedService method retrieveKubernetesResourceDescription.
default KubernetesResourceDescription retrieveKubernetesResourceDescription(Map<String, Map> componentSizing, String resourceType) {
KubernetesResourceDescription requests = new KubernetesResourceDescription();
requests.setCpu(CustomSizing.stringOrNull(componentSizing.get(resourceType).get("cpu")));
requests.setMemory(CustomSizing.stringOrNull(componentSizing.get(resourceType).get("memory")));
return requests;
}
Aggregations