Skip to content

Commit

Permalink
Added note about 1.x -> 2.0.0 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
alxrem committed Dec 12, 2021
1 parent cd45da4 commit 93fe53f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2.0.0 (Unreleased)
## 2.0.0 (Dec 12, 2021)

BREAKING CHANGES:

Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@
Terraform provider for generating JSON documents from [Jsonnet](https://jsonnet.org/) templates. It initially aimed to
rendering [Grafana](https://grafana.com) dashboards using [grafonnet library](https://github.com/grafana/grafonnet-lib).

## Migration 1.x -> 2.0.0

In versions 1.x parameter `jsonnet_path` of provider was of type **list**.
Starting from version 2.0.0 path to jsonnet libraries must be prepresented
as strings with the paths divided by colon as in shell `PATH` variable.

The easiest way to migrate provider definition to 2.x is to use `join` function i.e

```
provider "jsonnet" {
- jsonnet_path = ["${path.module}/jsonnet", "${path.module}/jsonnet/grafonnet-lib"]
+ jsonnet_path = join(":", ["${path.module}/jsonnet", "${path.module}/jsonnet/grafonnet-lib"])
}
```

## Installation

### terraform 0.13+
Expand Down

0 comments on commit 93fe53f

Please sign in to comment.