Share via


PropertySelectorRequirement interface

PropertySelectorRequirement is a specific property requirement when picking clusters for resource placement.

Properties

name

Name is the name of the property; it should be a Kubernetes label name.

operator

Operator specifies the relationship between a cluster's observed value of the specified property and the values given in the requirement.

values

Values are a list of values of the specified property which Fleet will compare against the observed values of individual member clusters in accordance with the given operator. At this moment, each value should be a Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or Le (less than or equal to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list.

Property Details

name

Name is the name of the property; it should be a Kubernetes label name.

name: string

Property Value

string

operator

Operator specifies the relationship between a cluster's observed value of the specified property and the values given in the requirement.

operator: string

Property Value

string

values

Values are a list of values of the specified property which Fleet will compare against the observed values of individual member clusters in accordance with the given operator. At this moment, each value should be a Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or Le (less than or equal to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list.

values: string[]

Property Value

string[]