feat(cli): add --no-default-agents flag to kagent install#1603
Open
Raghavendiran-2002 wants to merge 1 commit intokagent-dev:mainfrom
Open
feat(cli): add --no-default-agents flag to kagent install#1603Raghavendiran-2002 wants to merge 1 commit intokagent-dev:mainfrom
Raghavendiran-2002 wants to merge 1 commit intokagent-dev:mainfrom
Conversation
Signed-off-by: Raghavendiran-Github <raghavendiran46461@gmail.com>
9077d18 to
8b0cb6b
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a --no-default-agents flag to the kagent install command that disables all 10 default agents via helm --set flags, enabling users to perform a minimal installation without editing values files or passing multiple individual set flags.
Changes:
- Added
NoDefaultAgentsboolean field toInstallCfgstruct to track the flag state - Created
defaultAgentspackage-level slice containing all 10 agent names with supporting documentation - Implemented logic to append helm
--setflags disabling each agent when the flag is enabled, ensuring precedence over profile values - Registered the CLI flag in the main kagent command
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| go/core/cli/internal/cli/agent/install.go | Added struct field, agent list, and flag handling logic with proper helm precedence |
| go/core/cli/cmd/kagent/main.go | Registered the --no-default-agents boolean flag with cobra |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #766
Adds a
--no-default-agentsflag tokagent installthat disables all default agents, enabling a minimalinstallation without editing the helm values file or passing multiple
--setflags.