You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* register: Send local labels
Implement sending labels from the elemental-register binary to the
elemental-operator.
The labels can be specified as flags to the binary '--label env=staging
--label region=eu-north' or in a local file (defaults to
'/etc/elemental/labels.yaml' but can be changed using
--local-labels-file flag.)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Add label prefix field to MachineRegistration
The prefix can be used to set a custom prefix to the labels generated
for MachineInventories.
If a '-' is specified, no prefix is added to the Labels and Annotations
for the MachineInventory.
* Updates for e2e tests
This commit tries to bump dependencies and fix configuration for the e2e
tests.
Following actions were taken:
* Remove namespace from rbac role-binding roleRef (not a valid field)
* Update kubernetes version to v1.34.3 used by kind
* Update tested rancher version to v2.13.3
* Update cert-manager version to v1.20.2
* Update nginx-controller version to v1.15.1
* Update system-upgrade-controller version to v0.19.2
* Update logic in tests checking for rancher readiness
* Remove CATTLE_BOOTSTRAP_PASSWORD environment (setting duplicate env)
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
* Set labels using the templater
This change makes it possible to use the value templates (eg
${Runtime/Hostname} as a value for the local labels sent to the
registration API.
Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
cmd.Flags().BoolVar(&installation, "install", false, "Install a new machine")
190
204
cmd.Flags().BoolVar(&cfg.Elemental.Registration.NoToolkit, "no-toolkit", false, "No OS management via elemental-toolkit, only Install agent config files to local filesystem (for pre-installed hosts)")
191
205
cmd.Flags().BoolVar(&disableBootEntry, "disable-boot-entry", false, "Don't create an EFI entry for the system during install/reset")
206
+
cmd.Flags().StringToStringVar(&labels, "label", nil, "Client-side labels to add to the MachineInventory (key=value pairs)")
207
+
cmd.Flags().StringVar(&localLabelsFile, "local-labels-file", defaultLocalLabelsFile, "Path to a YAML file containing labels to add to the MachineInventory")
0 commit comments