Argo Workflows · JSON Structure

Argo Workflows Io K8S Apimachinery Pkg Apis Meta V1 Label Selector Structure

A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.

Type: object Properties: 2
CNCFContainersData ProcessingKubernetesMachine LearningOpen SourceWorkflow Engine

io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector is a JSON Structure definition published by Argo Workflows, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

matchExpressions matchLabels

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/argo-workflows/refs/heads/main/json-structure/argo-workflows-io-k8s-apimachinery-pkg-apis-meta-v1-label-selector-structure.json",
  "name": "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
  "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
  "type": "object",
  "properties": {
    "matchExpressions": {
      "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
      "type": "array",
      "items": {
        "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement"
      },
      "x-kubernetes-list-type": "atomic"
    },
    "matchLabels": {
      "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}