Skip to main content

Function: matchLabelsSimplifier()

function matchLabelsSimplifier(matchLabels: undefined | object, isEqualSeperator: boolean): string[] | ""

Simplifies a matchLabels object into an array of string expressions.

Parameters

ParameterTypeDefault valueDescription
matchLabelsundefined | objectundefinedthe matchLabels object from a LabelSelector.
isEqualSeperatorbooleanfalsewhether to use "=" as the separator instead of ":".

Returns

string[] | ""

an array of simplified label strings, or an empty string.

Defined in

src/lib/k8s/index.ts:235