LabelSelector Schema¶
Note
This is auto-generated documentation from a JSON schema that is under construction, this will improve over time.
Return to the root config schema
https://raw.githubusercontent.com/elastisys/compliantkubernetes-apps/v0.39.2/config/schemas/config.yaml#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
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.
Imported from Kubernetes project
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config/schemas/config.yaml* |
TYPE:
object
(LabelSelector)
PROPERTIES:
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
matchExpressions | array |
Optional | cannot be null | Compliant Kubernetes Apps Config |
matchLabels | object |
Optional | cannot be null | Compliant Kubernetes Apps Config |
matchExpressions¶
matchExpressions is a list of label selector requirements. The requirements are ANDed.
matchExpressions
-
is optional
-
Type: an array of merged types (Details)
-
cannot be null
-
defined in: Compliant Kubernetes Apps Config
TYPE:
an array of merged types (Details)
matchLabels¶
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.
matchLabels
-
is optional
-
Type:
object
(Details) -
cannot be null
-
defined in: Compliant Kubernetes Apps Config
TYPE:
object
(Details)
Return to the root config schema
Generated Thu Nov 14 16:14:40 UTC 2024 from elastisys/compliantkubernetes-apps@v0.39.2