odo: odo create should not require cluster access to function
/kind bug
What versions of software are you using?
Operating System: macOS 10.15.6
Output of odo version: odo v1.2.5 (927826e8d)
How did you run odo exactly?
odo create java-quarkus without being connected to a cluster
Actual behavior
✗ You don't have permission to create or set project 'default' or the project doesn't exist. Please create or set a different project
odo project create|set <project_name>
Expected behavior
odo should create my component without issue. I should be able to work with odo without a cluster up to the moment I actually want to push to the cluster.
Any logs, error output, etc?
See above.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 17 (15 by maintainers)
Commits related to this issue
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
- feat: delay namespace resolution until actually needed Fixes #3811 — committed to metacosm/odo by metacosm 4 years ago
Currently
odo createsaves project/namespace name intoenv.yaml. We need to defer this to a later stage (odo push).Acceptance criteria:
odo createis not doing anything with the cluster it should not even read anything fromKUBECONFIG. It needs to work even without Kubernetes client configuration.odo createwithout--projectthe project name should not be added toenv.yamlodo createwith--project. TheProjectwill be recorded inenv.yaml. There should be no check to verify if project/namespace exists or not.odo pushcan already handle a situation where there is noenv.yaml. It will also need to handle a situation whereenv.yamldoesn’t have specifyProject. So for example withodo pushcommand will first have to populateProjectfield with the default value (current project/namespace name) and then perform push action.Still an issue. Could.someone add frozen ?
Same for
odo catalog list componentshttps://github.com/openshift/odo/issues/3779