Skip to content

Commit

Permalink
Merge 8424913 into 07b2a01
Browse files Browse the repository at this point in the history
  • Loading branch information
valaparthvi authored Aug 5, 2022
2 parents 07b2a01 + 8424913 commit c45487d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
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

0 comments on commit c45487d

Please sign in to comment.