Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not preserve extensions on Talos agent mode #799

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

utkuozdemir
Copy link
Member

If Talos is in agent mode, we should avoid preserving the list of extensions for the actual Talos installation, as the metal-agent extension breaks the Talos installation.

Related to/workaround for #797

Copy link
Member

@Unix4ever Unix4ever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to add some tests. We have unit tests for the extensions discovery, it should be a good place to add it.

If Talos is in agent mode, we should avoid preserving the list of extensions for the actual Talos installation, as the `metal-agent` extension breaks the Talos installation.

Signed-off-by: Utku Ozdemir <[email protected]>
Comment on lines +434 to +443
id := "test-" + tt.name

machine := omni.NewMachine(resources.DefaultNamespace, id)
spec := machine.TypedSpec().Value

spec.Connected = true
spec.ManagementAddress = suite.socketConnectionString

suite.Require().NoError(suite.state.Create(suite.ctx, machine))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this here to create a different machine ID each time - otherwise MachineStatus preserves the initial schematic, and my new test was giving different results when it was run in isolation vs when it was run together with other tests.

@utkuozdemir
Copy link
Member Author

I'd suggest to add some tests. We have unit tests for the extensions discovery, it should be a good place to add it.

done

@utkuozdemir
Copy link
Member Author

/m

@talos-bot talos-bot merged commit 1d8c754 into siderolabs:main Dec 20, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants