Argo CD · JSON Structure

Argo Cd V1 Label Selector Requirement Structure

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

Type: object Properties: 3
Continuous DeliveryContainersDeploymentGitOpsKubernetesCNCFOpen Source

v1LabelSelectorRequirement is a JSON Structure definition published by Argo CD, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

key operator values

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-cd/refs/heads/main/json-structure/argo-cd-v1-label-selector-requirement-structure.json",
  "name": "v1LabelSelectorRequirement",
  "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
  "type": "object",
  "properties": {
    "key": {
      "description": "key is the label key that the selector applies to.",
      "type": "string"
    },
    "operator": {
      "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist.",
      "type": "string"
    },
    "values": {
      "type": "array",
      "name": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.\n+optional\n+listType=atomic",
      "items": {
        "type": "string"
      }
    }
  }
}