Skip to content

[core] rm talos lldp extension - #1586

Merged
Nikita (nbykov0) merged 1 commit into
mainfrom
rm-lldp
Nov 4, 2025
Merged

[core] rm talos lldp extension#1586
Nikita (nbykov0) merged 1 commit into
mainfrom
rm-lldp

Conversation

@nbykov0

@nbykov0 Nikita (nbykov0) commented Nov 4, 2025

Copy link
Copy Markdown
Collaborator

What this PR does

Removes Talos lldp extension.

Release note

Talos lldp extension removed.

Summary by CodeRabbit

  • Chores
    • Removed LLDPD (Link Layer Discovery Protocol Daemon) system extension from cluster configuration. This eliminates the LLDPD kernel module from cluster setups, removes LLDPD references from build processes, and updates installation profiles across all supported deployment methods including bare metal, cloud environments, and ISO installations, resulting in a reduced system footprint.

Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com>
@dosubot dosubot Bot added the size/S This PR changes 10-29 lines, ignoring generated files label Nov 4, 2025
@nbykov0 Nikita (nbykov0) self-assigned this Nov 4, 2025
@coderabbitai

coderabbitai Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request removes the Link Layer Discovery Protocol daemon (lldpd) system extension from Talos cluster configuration across multiple build profiles and kernel module patches, eliminating lldpd from being compiled, loaded, and distributed.

Changes

Cohort / File(s) Summary
Kernel Module Configuration
hack/e2e-prepare-cluster.bats
Removed lldpd entry from Talos cluster kernel module patches under machine.kubelet.kernel.modules
Profile Generation Script
packages/core/installer/hack/gen-profiles.sh
Removed LLDPD extension and image references; EXTENSIONS now excludes lldpd and removed LLDPD_IMAGE reference from input stanza
Talos Profile YAML Files
packages/core/installer/images/talos/profiles/{initramfs,installer,iso,kernel,metal,nocloud}.yaml
Removed lldpd systemExtensions imageRef entries across all profiles; installer.yaml and kernel.yaml also added outFormat: raw to output section

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Simple, repetitive removal of lldpd references across configuration files with consistent pattern
  • No complex logic changes or structural modifications
  • All changes are straightforward deletions of extension image references

Possibly related PRs

  • cozystack#1527: Modifies the same Talos profile files' systemExtensions; main PR removes lldpd while retrieved PR updates/replaces systemExtensions
  • cozystack#1351: Directly reverts the lldpd additions; modifies the same gen-profiles.sh, hack/e2e-prepare-cluster.bats, and multiple Talos profile files

Suggested reviewers

  • lllamnyp
  • kvaps

Poem

🐰 The lldpd hops away, no more,
From profiles and patches galore,
A cleanup so clean, so pure,
Extensions reduced, sleek and sure! 🌿

Pre-merge checks and finishing touches

✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[core] rm talos lldp extension' clearly and concisely describes the primary change: removing the Talos LLDP extension across all configuration files.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch rm-lldp

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4c08caa and c19cddf.

📒 Files selected for processing (8)
  • hack/e2e-prepare-cluster.bats (0 hunks)
  • packages/core/installer/hack/gen-profiles.sh (1 hunks)
  • packages/core/installer/images/talos/profiles/initramfs.yaml (0 hunks)
  • packages/core/installer/images/talos/profiles/installer.yaml (0 hunks)
  • packages/core/installer/images/talos/profiles/iso.yaml (0 hunks)
  • packages/core/installer/images/talos/profiles/kernel.yaml (0 hunks)
  • packages/core/installer/images/talos/profiles/metal.yaml (0 hunks)
  • packages/core/installer/images/talos/profiles/nocloud.yaml (0 hunks)
💤 Files with no reviewable changes (7)
  • hack/e2e-prepare-cluster.bats
  • packages/core/installer/images/talos/profiles/nocloud.yaml
  • packages/core/installer/images/talos/profiles/iso.yaml
  • packages/core/installer/images/talos/profiles/kernel.yaml
  • packages/core/installer/images/talos/profiles/metal.yaml
  • packages/core/installer/images/talos/profiles/installer.yaml
  • packages/core/installer/images/talos/profiles/initramfs.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build
🔇 Additional comments (1)
packages/core/installer/hack/gen-profiles.sh (1)

8-8: Verified: lldpd removal is complete and safe.

The change correctly removes "lldpd" from the EXTENSIONS list on line 8. Verification confirms no remaining references to LLDPD or LLDPD_IMAGE exist in the script or related build files. The removal is isolated and introduces no breaking changes.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello Nikita (@nbykov0), I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on streamlining the Talos core components by entirely removing the LLDP (Link Layer Discovery Protocol) extension. The change simplifies the system by eliminating all associated configurations and build steps for lldpd across various image profiles and helper scripts, ensuring that this specific network discovery protocol is no longer part of the generated Talos images or considered in end-to-end testing environments.

Highlights

  • LLDP Extension Removal: The Talos LLDP (Link Layer Discovery Protocol) extension has been completely removed from the core components and build configurations.
  • Configuration Updates: All references to lldpd have been eliminated from e2e test configurations, profile generation scripts, and various Talos image profiles including initramfs, installer, iso, kernel, metal, and nocloud.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment Gemini (@gemini-code-assist) Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on Gemini (@gemini-code-assist) comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request removes the Talos lldp extension. The changes are consistent across all modified files, including the end-to-end test cluster preparation script, the profile generation script, and all the generated profile YAML files. The removal of the lldpd extension and its associated image references is done correctly. The changes are straightforward and I have no further comments.

@kvaps Andrei Kvapil (kvaps) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Nov 4, 2025
@kvaps Andrei Kvapil (kvaps) added the backport Should change be backported on previous release label Nov 4, 2025
@nbykov0
Nikita (nbykov0) merged commit 1d10907 into main Nov 4, 2025
22 checks passed
@nbykov0
Nikita (nbykov0) deleted the rm-lldp branch November 4, 2025 10:52
@github-actions

github-actions Bot commented Nov 4, 2025

Copy link
Copy Markdown

Backport failed for release-0.37, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-0.37
git worktree add -d .worktree/backport-1586-to-release-0.37 origin/release-0.37
cd .worktree/backport-1586-to-release-0.37
git switch --create backport-1586-to-release-0.37
git cherry-pick -x c19cddf08e8335f3f6c550cb79eddf0471391c98

Andrei Kvapil (kvaps) pushed a commit that referenced this pull request Nov 4, 2025
<!-- Thank you for making a contribution! Here are some tips for you:
- Start the PR title with the [label] of Cozystack component:
- For system components: [platform], [system], [linstor], [cilium],
[kube-ovn], [dashboard], [cluster-api], etc.
- For managed apps: [apps], [tenant], [kubernetes], [postgres],
[virtual-machine] etc.
- For development and maintenance: [tests], [ci], [docs], [maintenance].
- If it's a work in progress, consider creating this PR as a draft.
- Don't hesistate to ask for opinion and review in the community chats,
even if it's still a draft.
- Add the label `backport` if it's a bugfix that needs to be backported
to a previous version.
-->

Removes Talos lldp extension. Please build a custom talos image with factory.talos.dev if you need it.

<!--  Write a release note:
- Explain what has changed internally and for users.
- Start with the same [label] as in the PR title
- Follow the guidelines at
https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md.
-->

```release-note
Talos lldp extension removed.
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

* **Chores**
* Removed LLDPD (Link Layer Discovery Protocol Daemon) system extension
from cluster configuration. This eliminates the LLDPD kernel module from
cluster setups, removes LLDPD references from build processes, and
updates installation profiles across all supported deployment methods
including bare metal, cloud environments, and ISO installations,
resulting in a reduced system footprint.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Should change be backported on previous release lgtm This PR has been approved by a maintainer size/S This PR changes 10-29 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants