This required a lot of bumps to keep things working:
- `siderolabs/tools` to `v1.12.0-1-g188885e` (this is bumped to the HEAD
of the `release-1.12` branch to include Go bump)
- `siderolabs/pkgs` to `v1.12.0`
Additionally, due to
52db66e8d9m,
had to replace `protoc` with `buf` and add an appropriate `buf.yaml`.
Also includes some `talos@v1.12.0-beta.0` related non-trivial changes in
sfyra tests.
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
Changes:
- variable names (`apiUrl` -> `apiURL`)
- multiple import of the same package (in `pkg/tests/server.go`,
`k8s.io/api/core/v1` was being imported as `v1` and `corev1`)
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
See: https://golangci-lint.run/docs/product/migration-guide/
This commit (attempts to) migrates the golangci-lint configuration file
to the `v2` format.
`golangci-lint migrate` will just migrate a config file to the new
version, but doesn't keep comments, so I did some manual git digging
later to recover most of what I could.
Of note:
- run.timeout was removed because v2 no longer
- `linters.fast: false` was replaced by the `linters.default: fast|all`
property (is set to `all`)
- `linters.enable-all: true` was also replaced by `linters.default: all`
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
Since Talos v1.10, with UKI, kernel arguments used for the installation
are not persisted through a reboot.
This causes kernel args such as `siderolink.api`, `talos.events.sink`
and `talos.logging.kernel` to be missing after the reboot, and thus
the appropriate config resources (`SideroLinkConfig`, etc.) aren't
created, which disrupts the setup flow.
This commit changes the metadata server to include these configs in
the patched machine configuration, ensuring that they persist across
reboots.
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
The very last step in the machine config generation is to apply a
specific node label to match the Kubernetes node back to the Machine.
This step was using legacy JSON patches which rendered impossible to use
multi-doc machine config.
Rebuild to use strategic patch instead, this changes formatting of the
config in the tests, but not in real production.
Also this means that Sidero is locked to the Talos version it was built
for (it won't support newer Talos machine configs), but that has already
been the case with strategic patches.
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This allows to filter out addresses reported by Talos machines to
SideroMetal and which appear under `Machine.status.addresses`.
Fixes#1368
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit implements strategic merge patch by reusing Talos
configpatcher patch handling. Furthermore, a unit test scenario has been
added to ensure its functionality.
Fixes: #1259
Signed-off-by: Ksawery Kuczyński <ksawerykuczynskikk@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Correct minor typo found in the "Expose Sidero Services" documentation.
Signed-off-by: Luke Carrier <luke@carrier.im>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
AgentEndpointArg and AgentMACArg values was inverted
Signed-off-by: Anthony ARNAUD <github@anthony-arnaud.fr>
Signed-off-by: Noel Georgi <git@frezbo.dev>
The website currently redirects to 0.5 instead of 0.6
Signed-off-by: Oscar Utbult <oscar.utbult@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
High Speed Networks (e.g. HPE Slingshot) with statically assigned IPs
don't use DHCP services. This causes the ipxe dhcp command to fail and
prevent pxe-booting from a subsequent interface. This change will allow
the ipxe script to skip over these types of networks.
Signed-off-by: Nathan Lee <nathan.lee@hpe.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>