rancher / elemental-docs

Documentation for everything around Rancher Elemental
https://elemental.docs.rancher.com
Apache License 2.0
6 stars 20 forks source link

Incomplete documentation for selector operator options #418

Open philippebi opened 1 week ago

philippebi commented 1 week ago

I have noticed that the documentation seems to be outdated, at least in these 2 links:

machineinventoryselectortemplate-reference machineregistration-reference

Operator Description
in The key matches one of the provided values
notIn The key does not match any of the provided values
gt The key is greater than a single provided value
lt The key is lesser than a single provided value

While in the code:

vendor/k8s.io/apimachinery/pkg/selection/operator.go:type Operator string
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   DoesNotExist Operator = "!"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   Equals       Operator = "="
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   DoubleEquals Operator = "=="
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   In           Operator = "in"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   NotEquals    Operator = "!="
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   NotIn        Operator = "notin"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   Exists       Operator = "exists"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   GreaterThan  Operator = "gt"
vendor/k8s.io/apimachinery/pkg/selection/operator.go:   LessThan     Operator = "lt"