Selectors
The part of an object that says which workstations it applies to, and what a selector with no labels matches for each kind.
A selector is the part of an object that says which workstations the object applies to. You put labels on workstations, and the selector names the labels it looks for. Every workstation that carries those labels gets the object, including workstations created later.
Configuration layers shows how to attach a WorkstationConfig by label, whose workstations a selector reaches, and how wide to make one.
Empty selector matches
The answer differs by kind, so check this table before you leave a selector empty:
| Kind | Field | With no labels |
|---|---|---|
| WorkstationConfig | spec.selector | Matches nothing. With ownerScope: true, it matches every workstation you own in the namespace. |
| Integration | spec.selector | A member’s Integration reaches every workstation that member owns. An administrator’s reaches nothing. With ownerScope: true, it reaches every workstation that administrator owns. |
| SSHKey | spec.selector | Matches every workstation. |
| Identity selection | spec.selector | Matches every workstation on its cloud provider. |
| LocalBinding | spec.workstationSelector | Not allowed. Give it labels, or one workstation’s name in matchName. |
Next steps
- Configuration layers: selectors, explicit references and the personal layer.
- Integration reach: the rules for an Integration’s selector.
- Roles and grants: ownership, roles and what a member’s selector may reach.