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: sperate cli namespace flag for sources and install #2389

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

blumamir
Copy link
Collaborator

@blumamir blumamir commented Feb 4, 2025

The new sources cli command was reusing the namespaceFlag of the install command, setting it to default value default.
This leads to odigos install trying to install odigos into default ns if run without setting this flag.

@@ -230,7 +231,7 @@ func parseSourceLabelFlags() (string, string, string, labels.Set) {

func init() {
sourceFlags = pflag.NewFlagSet("sourceFlags", pflag.ContinueOnError)
sourceFlags.StringVarP(&namespaceFlag, namespaceFlagName, "n", "default", "Kubernetes Namespace for Source")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

reviewer note: the namespaceFlag is defined in install command and this line overrides it's default value odigos-system with default which leaks into the install.

@BenElferink BenElferink added the bug Something isn't working label Feb 4, 2025
@BenElferink BenElferink merged commit 3a7d303 into odigos-io:main Feb 4, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants