-
Notifications
You must be signed in to change notification settings - Fork 244
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
[Devfile] odo needs to be storing namespace in local env.yaml file #2684
Comments
/area devfile |
+1 A little bit of context: But for your testing problem, there is a solution even with the current implementation. It should be possible to just copy the current |
Let me turn this into user story User Story
Acceptance criteria
|
Based on the design discussion, we are using --project instead of --namespace for the command to make it consistent with the odo s2i scenario. The value that we store in the env.yaml will continue to use namespace since the eventual goal is to turn the command later to use --namespace in the future. |
/kind bug
What versions of software are you using?
Operating System:
macOS
Output of
odo version
:odo from master
Actual behavior
I've been looking at writing integration tests for odo's devfile support and was hitting a bizarre issue: tests would intermittently fail because it was trying to retrieve Kube resources or do an odo push in a different namespace than what was expected, thus causing a number of errors
What was happening is that the integration tests would be running in parallel, and standing up their own namespace/project for each test. Since
odo push --devfile
always just uses the current active namespace (rather than one specified by the user with a--namespace
flag or the namespace where the component was pushed to), this would mean a number of issues could occur:-
odo push
fails because the namespace is being terminated-
odo push
pushes to the wrong namespace- Unable to retrieve pods because the namespace we did the
odo push
in, is no longer the active namespaceWe should modify
odo push
for devfiles to do the following:--namespace
flag to the command, allowing the user to specify the namespace to be usedenv.yaml
--namespace
or in the env.yamlExpected behavior
odo push
doesn't always use the current active namespaceThe text was updated successfully, but these errors were encountered: