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"
I have noticed that the documentation seems to be outdated, at least in these 2 links:
machineinventoryselectortemplate-reference
machineregistration-reference
While in the code: