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

Document how odo works with projects/namespaces #6009

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/website/docs/command-reference/create-namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ title: odo create namespace

Any new namespace created with this command will also be set as the current active namespace, this applies to project as well.

:::note
Executing this command inside a component directory will not update the namespace or project of the existing component.
:::

To create a namespace you can run `odo create namespace <name>`:
```shell
odo create namespace mynamespace
Expand Down
2 changes: 2 additions & 0 deletions docs/website/docs/command-reference/set-namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ title: odo set namespace

`odo set namespace` lets you set a namespace/project as the current active one in your local `kubeconfig` configuration.

:::note
Executing this command inside a component directory will not update the namespace or project of the existing component.
:::

To set the current active namespace you can run `odo set namespace <name>`:
```console
Expand Down
1 change: 1 addition & 0 deletions pkg/odo/cli/create/namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var (
This command directly performs actions on the cluster and doesn't require a push.

Any new namespace created with this command will also be set as the current active namespace.
If executed inside a component directory, this command will not update the namespace of the existing component.
`)

createShortDesc = `Create a new namespace`
Expand Down