Search in sources :

Example 1 with KubernetesResourceDescription

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;
}
Also used : KubernetesResourceDescription(com.netflix.spinnaker.clouddriver.kubernetes.v1.deploy.description.servergroup.KubernetesResourceDescription)

Aggregations

KubernetesResourceDescription (com.netflix.spinnaker.clouddriver.kubernetes.v1.deploy.description.servergroup.KubernetesResourceDescription)1