Skip to content

Commit

Permalink
terraform: Update for 0.14 juju-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
orfeas-k committed Sep 19, 2024
1 parent 211e9e1 commit 15f4293
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion charms/argo-controller/terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

This is a Terraform module facilitating the deployment of argo-controller charm, using the [Terraform juju provider](https://github.com/juju/terraform-provider-juju/). For more information, refer to the provider [documentation](https://registry.terraform.io/providers/juju/juju/latest/docs).

## Compatibility
This terraform module is compatible with charms of version >= 3.4 due to changes in the charm's relations.

## Requirements
This module requires a `juju` model to be available. Refer to the [usage section](#usage) below for more details.

Expand All @@ -16,7 +19,7 @@ The module offers the following configurable inputs:
| `channel`| string | Channel that the charm is deployed from | False |
| `config`| map(string) | Map of the charm configuration options | False |
| `model_name`| string | Name of the model that the charm is deployed on | True |
| `resources`| map(number) | Map of charm resources revisions | False |
| `resources`| map(string) | Map of the charm resources | False |
| `revision`| number | Revision number of the charm name | False |

### Outputs
Expand Down
5 changes: 2 additions & 3 deletions charms/argo-controller/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ variable "model_name" {
type = string
}

# TODO: Update to a map of strings, once juju provider 0.14 is released
variable "resources" {
description = "Map of resources revisions"
type = map(number)
description = "Map of resources"
type = map(string)
default = null
}

Expand Down
2 changes: 1 addition & 1 deletion charms/argo-controller/terraform/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
juju = {
source = "juju/juju"
version = "~> 0.13.0"
version = "~> 0.14.0"
}
}
}

0 comments on commit 15f4293

Please sign in to comment.