docs/_docs/learn/dsl/review-project.md in kubes-0.4.0 vs docs/_docs/learn/dsl/review-project.md in kubes-0.4.1
- old
+ new
@@ -9,14 +9,16 @@
We'll create a namespace for the app resources:
.kubes/resources/shared/namespace.rb
```ruby
-name "demo"
+name "demo-#{Kubes.env}"
labels(app: "demo")
```
+Notice, the `#{Kubes.env}`. Kubes adds the env to the namespace by default. You can change this with the `init --namespace` option.
+
## Deployment
The `web/deployment.rb` file is a little more interesting:
.kubes/resources/web/deployment.rb
@@ -37,10 +39,10 @@
Also let's check the files in the base folder.
.kubes/resources/base/all.rb
```ruby
-namespace "default"
+namespace "demo-#{Kubes.env}"
labels(app: "demo")
```
The base folder files are processed first as a part of [Kubes Layering]({% link _docs/layering.md %}). This allows you to define common fields and keep your code DRY.