Consolidating duplicate fleet definitions
Migrate from multiple near-identical fleet definitions to a single fleet that uses template placeholders and layered configuration to eliminate duplication.
Before you begin
- You have the
flightctlCLI installed. - You have at least two fleet definitions with overlapping configuration.
- You have access to the Git repository that stores your device configuration.
Procedure
Results
- Run
flightctl get devices -l 'type=pos-terminal'and verify that all devices show the expectedOWNERvalue, which is the consolidated fleet name. - Run
flightctl get device/<device_name> -o yamlfor a device from each dimension and verify the rendered configuration matches expectations. - Check that no devices have the
MultipleOwnerscondition set totrue:flightctl get devices -o json | jq '.items[] | select(.status.conditions[]? | select(.type=="MultipleOwners" and .status=="True")) | .metadata.name'