15 Commits

Author SHA1 Message Date
Spencer Smith
41880ed359
chore: fix gpg check and sfyra build
This PR fixes the gpg check as well as adds the clusterctl workaround to
make sfyra build properly.

Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
2022-05-18 14:17:04 +03:00
Andrey Smirnov
7912509347
refactor: cleanup and deduplicate the code which matches SideroLink IPs
Use same matcher in both log receiever and event receiver. Fix panic in
event receiver.

Bump CAPI and remove cert-manager temporary hack.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2022-02-03 20:28:34 +03:00
Andrey Smirnov
003f6a73ec
fix: don't boot from not ready environments
If the environment is not ready, don't boot from it, as it would fail
anyways.

Fixes #658

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2022-02-02 21:49:21 +03:00
Artem Chernyshev
b30fbe4317
feat: set server PXEBooted condition only after Talos gets installed
Now `PXEBooted` condition is derived from `TalosInstalled` condition of
the linked `ServerBinding`.
This makes the node to use `pxe` boot until Talos installation succeeds.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2022-01-17 16:43:52 +03:00
Noel Georgi
e77bf54a31
feat: support cordoning server
Adds `cordoned` field to *server* spec to prevent allocation

Signed-off-by: Noel Georgi <git@frezbo.dev>
2021-11-26 22:45:33 +05:30
Alexey Palazhchenko
b3afd17a8e feat: ship ServerClass "any"
Closes #310.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
2021-05-07 07:46:58 -07:00
Alexey Palazhchenko
b17f37092c test: port improvements from Talos
REGISTRY_MIRROR_FLAGS can be set via direnv.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
2021-04-28 08:46:57 -07:00
Andrey Smirnov
b790d7afe2 fix: overwrite kernel args from --extra-agent-kernel-args
This allows to override default options (e.g. `console=ttyS0`) with
provided values. Make sure that full value is given for each option, as
any default values for the option are dropped if specified in
`--extra-agent-kernel-args`, e.g.
`--extra-agent-kernel-args "console=tty0 console=ttyS1 panic=5"`.

See also https://github.com/talos-systems/go-procfs/pull/5

Fixes #251

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-12-16 23:16:33 -08:00
Andrey Smirnov
907a66907f test: add simulated power management failures in testing mode
This injects power management failures in Sfyra (under test). By default
failures are not injected.

Two class of failures are supported:

* explicit (when client returns an error)
* silent (when client doesn't do the job, but error is not returned)

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-12-02 13:15:41 -08:00
Andrew Rynhard
d2f579a3ba chore: move to ghcr.io
We need to move to ghcr.io because docker.io is now rate limiting pulls.

Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
2020-11-06 11:19:13 -08:00
Andrey Smirnov
2cff3cf2cf chore: update Sfyra for the new Talos release
In 0.7.0-alpha.4, asset names got changed slightly.

This bumps bootstrap cluster resources as 2GiB is not enough for CAPI.

Fixes a small bug with asset filenames in environment controller.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-10-06 14:30:58 -07:00
Andrey Smirnov
afdfb859a7 refactor: split 'sfyra' CLI into multiple subcommands
This allows to use parts of Sfyra (e.g. install CAPI) without touching
other parts.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-09-30 08:03:06 -07:00
Andrey Smirnov
91094b15b6 test: use dedicated config for the sfyra tests
This makes sure automation won't overwrite the default config location.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-09-28 14:36:40 -07:00
Andrey Smirnov
0b9b5cc539 chore: update reference to internal registry
Use new 'secure' registry  reference.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-09-27 07:54:30 -07:00
Andrey Smirnov
f8c7c541e4 chore: merge Sfyra into Sidero repository
Mostly only file renaming and other non-functional changes.

Incorporated fix from https://github.com/talos-systems/sfyra/pull/21.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-09-22 11:16:13 -07:00