Skip to content

Commit 53a38d9

Browse files
rename vars to app. default history is 1
1 parent 75a0455 commit 53a38d9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ Here's the gist of using it directly from github.
133133

134134
| Name | Description | Type | Default | Required |
135135
|------|-------------|------|---------|:--------:|
136+
| app | A Release is an instance of a chart running in a Kubernetes cluster. | `map` | `{}` | no |
136137
| app\_deploy | whther or not to deploy app | `bool` | `true` | no |
137138
| bucket | Backup and Restore bucket. | `string` | n/a | yes |
138139
| cluster\_name | Cluster name. | `string` | n/a | yes |
@@ -143,7 +144,6 @@ Here's the gist of using it directly from github.
143144
| repository | VMware Tanzu repository for Helm repos. | `string` | `"https://vmware-tanzu.github.io/helm-charts"` | no |
144145
| tags | A mapping of tags to assign to the object. | `map` | `{}` | no |
145146
| values | List of values in raw yaml to pass to helm. Values will be merged. | `list(string)` | n/a | yes |
146-
| vars | A Release is an instance of a chart running in a Kubernetes cluster. | `map` | `{}` | no |
147147

148148
## Outputs
149149

main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ resource helm_release this {
1919
namespace = local.namespace
2020
repository = var.repository
2121

22-
force_update = lookup(var.vars, "force_update", true)
23-
wait = lookup(var.vars, "wait", true)
24-
recreate_pods = lookup(var.vars, "recreate_pods", true)
25-
max_history = lookup(var.vars, "max_history", 0)
26-
lint = lookup(var.vars, "lint", true)
27-
version = lookup(var.vars, "version", "2.12.0")
22+
force_update = lookup(var.app, "force_update", true)
23+
wait = lookup(var.app, "wait", true)
24+
recreate_pods = lookup(var.app, "recreate_pods", true)
25+
max_history = lookup(var.app, "max_history", 1)
26+
lint = lookup(var.app, "lint", true)
27+
version = lookup(var.app, "version", "2.12.0")
2828

2929
values = concat(var.values, list(<<EOF
3030
serviceAccount:

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ variable "values" {
4949
type = list(string)
5050
}
5151

52-
variable "vars" {
52+
variable "app" {
5353
description = "A Release is an instance of a chart running in a Kubernetes cluster."
5454
type = map
5555
default = {}

0 commit comments

Comments
 (0)