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

✨ Feature: CNI and Addons #46

Merged
merged 7 commits into from
Feb 13, 2025
Merged

✨ Feature: CNI and Addons #46

merged 7 commits into from
Feb 13, 2025

Conversation

dipankardas011
Copy link
Member

@dipankardas011 dipankardas011 commented Feb 11, 2025

🗒️ Changelog

  • cni addons during cluster creation
  • added -debug-cli flag to help us with debugging as pterm has some problem during debugging

This pull request includes significant changes to the ksctl CLI tool, primarily focusing on enhancing the user interface and integrating a new menuDriven component for user interactions. Additionally, it refactors the handling of addons and improves the overall code structure.

Key changes include:

User Interface Enhancements:

Addons Management:

  • Implemented the addonClientSetup method to streamline the setup process for addon operations. (cmd/addons.go)
  • Enhanced the EnableAddon and DisableAddon commands to include user prompts and error handling for enabling and disabling addons. (cmd/addons.go) [1] [2]

Code Refactoring:

  • Removed the ListAddon method and unnecessary imports to clean up the codebase. (cmd/addons.go, cmd/create.go) [1] [2]
  • Added a new menuDriven field to the KsctlCommand struct for enhanced user interaction management. (cmd/cli.go)

These changes collectively improve the usability, maintainability, and functionality of the ksctl CLI tool.

🏋🏼 Issues

✅ Completed Issues

📎 Related Issues

  • Related to:

🚀 Task List

  • addon for CNIs
  • kcm addon enable/disable

🔍 Review Checklist

  • Code follows project style guidelines
  • Added/updated tests
  • Ran tests locally
  • Updated documentation
  • Checked Contribution Guidelines

📸 Screenshots/Recordings

📌 Additional Notes


💡 PR best practices
  • Keep changes focused and atomic
  • Update tests and documentation
  • Check for conflicts with main branch
  • Respond promptly to review comments
  • Follow project coding standards
  • Make sure you are using pre-commit for that run this command $ pre-commit install

now you can use the debug mode menu driven --debug-cli

Signed-off-by: Dipankar Das <[email protected]>
Signed-off-by: Dipankar Das <[email protected]>
Signed-off-by: Dipankar Das <[email protected]>
Signed-off-by: Dipankar Das <[email protected]>
@dipankardas011 dipankardas011 marked this pull request as ready for review February 12, 2025 15:05
@Horiodino
Copy link
Member

Ci failing please fix it.

@dipankardas011 dipankardas011 changed the title added cni select from the addons list ✨ Feature: CNI and Addons Feb 12, 2025
Signed-off-by: Dipankar Das <[email protected]>
@Horiodino Horiodino self-requested a review February 13, 2025 13:39
Copy link
Member

@Horiodino Horiodino left a comment

Choose a reason for hiding this comment

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

LGTM

@Horiodino Horiodino merged commit 93c3410 into main Feb 13, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Missing addon support like CNI, apps from managed clusters
2 participants