Function: getDisruptionMode()
function getDisruptionMode(mode:
| PodGroupDisruptionMode
| "Pod"
| "PodGroup"
| undefined): "Pod" | "PodGroup" | undefined;
Defined in: lib/k8s/podGroup.ts:138
Human readable disruption mode across API versions. v1alpha2 uses the strings
'Pod'/'PodGroup'; v1alpha3 and v1beta1 use an object with a single or all field.
Both describe the same choice: disrupt one pod at a time, or the whole group together.
Parameters
| Parameter | Type | Description |
|---|---|---|
mode | | PodGroupDisruptionMode | "Pod" | "PodGroup" | undefined | The disruptionMode field of a PodGroup spec. |
Returns
"Pod" | "PodGroup" | undefined
'Pod', 'PodGroup', or undefined when no mode is set.