Skip to content

Commit 86d8ed1

Browse files
jfmontanaro100mik
authored andcommitted
add app-namespace documentation for v0.59.x and v0.60.x
Signed-off-by: Joseph Montanaro <jfmonty2@gmail.com>
1 parent 347976d commit 86d8ed1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

site/content/kapp/docs/v0.59.x/state-namespace.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Namespace for State Storage
77

88
To show list of deployed applications (via `kapp ls`), kapp manages metadata `ConfigMap` for each saved application. Each metadata `ConfigMap` contains generated label used to label all application resources. Additionally kapp creates `ConfigMap` per each deploy to record deployment history (seen via `kapp app-change list -a app1`).
99

10-
`-n` (`--namespace`) flag allows to control which namespace is used for finding and storing metadata `ConfigMaps`. If namespace is not explicitly specified your current namespace is selected from kube config (typically `~/.kube/config`).
10+
`--app-namespace` flag allows to control which namespace is used for finding and storing metadata `ConfigMaps`. If namespace is not explicitly specified the app-wide namespace is used as specified by `-n` or `--namespace`); if `-n` is not specified your current namespace is selected from kube config (typically `~/.kube/config`).
1111

1212
There are currently two approaches to deciding which namespace to use for storing metadata `ConfigMaps`:
1313

@@ -23,8 +23,8 @@ There are currently two approaches to deciding which namespace to use for storin
2323

2424
```bash
2525
$ kubectl create ns apps
26-
$ kapp deploy -n apps -f app1/config.yml
27-
$ kapp deploy -n apps -f app2/config.yml
26+
$ kapp deploy --app-namespace apps -f app1/config.yml
27+
$ kapp deploy --app-namespace apps -f app2/config.yml
2828
$ kapp ls -n apps
2929
```
3030

site/content/kapp/docs/v0.60.x/state-namespace.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Namespace for State Storage
77

88
To show list of deployed applications (via `kapp ls`), kapp manages metadata `ConfigMap` for each saved application. Each metadata `ConfigMap` contains generated label used to label all application resources. Additionally kapp creates `ConfigMap` per each deploy to record deployment history (seen via `kapp app-change list -a app1`).
99

10-
`-n` (`--namespace`) flag allows to control which namespace is used for finding and storing metadata `ConfigMaps`. If namespace is not explicitly specified your current namespace is selected from kube config (typically `~/.kube/config`).
10+
`--app-namespace` flag allows to control which namespace is used for finding and storing metadata `ConfigMaps`. If namespace is not explicitly specified the app-wide namespace is used as specified by `-n` or `--namespace`); if `-n` is not specified your current namespace is selected from kube config (typically `~/.kube/config`).
1111

1212
There are currently two approaches to deciding which namespace to use for storing metadata `ConfigMaps`:
1313

@@ -23,8 +23,8 @@ There are currently two approaches to deciding which namespace to use for storin
2323

2424
```bash
2525
$ kubectl create ns apps
26-
$ kapp deploy -n apps -f app1/config.yml
27-
$ kapp deploy -n apps -f app2/config.yml
26+
$ kapp deploy --app-namespace apps -f app1/config.yml
27+
$ kapp deploy --app-namespace apps -f app2/config.yml
2828
$ kapp ls -n apps
2929
```
3030

0 commit comments

Comments
 (0)