Skip to main content

Function: getSchedulingPolicyKind()

function getSchedulingPolicyKind(policy: 
| {
basic?: unknown;
gang?: unknown;
}
| undefined): string | undefined;

Defined in: lib/k8s/podGroup.ts:119

Human readable name of the policy a scheduling policy describes. Takes the shared shape of the policy union so that composite templates can use it too.

Parameters​

ParameterTypeDescription
policy| { basic?: unknown; gang?: unknown; } | undefinedThe scheduling policy of a PodGroup or of a Workload's template.

Returns​

string | undefined

'Gang', 'Basic', or undefined when no policy is set.