labels property

Map<String, String>? labels
getter/setter pair

User-defined labels for the task.

If the map is left empty, the task will run with existing labels from task definition. If the map contains an entry with a new key, the same will be added to existing set of labels. If the map contains an entry with an existing label key in task definition, the task will run with new label value for that entry. Clearing an existing label will require label value to be explicitly set to a hyphen "-". The label value cannot be empty.

Optional.

Implementation

core.Map<core.String, core.String>? labels;