Skip to content

Commit

Permalink
Replacing "+::" with "+:". (grafana#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
09jvilla authored Aug 2, 2021
1 parent 9fc453b commit 6426883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/jsonnet/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@ local secret = {
};
```

To change the namespace only, we can use the special merge key `+::` like so:
To change the namespace only, we can use the special merge key `+:` like so:

```jsonnet
// define the patch:
local patch = {
metadata+:: {
metadata+: {
namespace: "myApp"
}
}
```

The difference between `:` and `+::` is that the former replaces the original
The difference between `:` and `+:` is that the former replaces the original
data at that key, while the latter applies the new object as a patch on top,
meaning that values will be updated if possible but all other stay like they
are.
Expand Down

0 comments on commit 6426883

Please sign in to comment.