Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avidhara/terraform-helm-chart-release
terraform module for helm chart release
https://github.com/avidhara/terraform-helm-chart-release
helm helm-release infrastructure-as-code kubernetes terraform-module
Last synced: 19 days ago
JSON representation
terraform module for helm chart release
- Host: GitHub
- URL: https://github.com/avidhara/terraform-helm-chart-release
- Owner: avidhara
- License: other
- Created: 2020-02-19T02:40:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T10:30:21.000Z (about 4 years ago)
- Last Synced: 2024-11-14T23:28:17.474Z (3 months ago)
- Topics: helm, helm-release, infrastructure-as-code, kubernetes, terraform-module
- Language: HCL
- Homepage: https://registry.terraform.io/modules/foss-cafe/chart-release/helm/latest
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Module for Helm Release
### Use as a Module
```terrraform
module "helmredis" {
source = "git::https://github.com/foss-cafe/terraform-helm-release.git/"
name = "my-redis-release"
repository = data.helm_repository.stable.metadata[0].name
chart = "redis"
chart_version = "6.0.1"
set = [{
name = "cluster.enabled"
value = "true"
},
{
name = "metrics.enabled"
value = "true"
}
]
set_string = [{
name = "service.annotations.prometheus\\.io/port"
value = "9127"
}
]
}
```## Requirements
| Name | Version |
|------|---------|
| terraform | ~> 0.12.24 |
| helm | ~> 1.1.0 |## Providers
| Name | Version |
|------|---------|
| helm | ~> 1.1.0 |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| atomic | If set, installation process purges chart on fail. The wait flag will be set automatically if atomic is used. Defaults to true | `bool` | `true` | no |
| chart | Chart name to be installed | `string` | `null` | no |
| chart\_version | Specify the exact chart version to install. If this is not specified, the latest version is installed | `string` | `null` | no |
| cleanup\_on\_fail | Allow deletion of new resources created in this upgrade when upgrade fails. Defaults to false | `bool` | `true` | no |
| dependency\_update | Runs helm dependency update before installing the chart. Defaults to false. | `bool` | `false` | no |
| disable\_webhooks | Prevent hooks from running. Defauts to false | `bool` | `false` | no |
| force\_update | Force resource update through delete/recreate if needed. Defaults to false | `bool` | `false` | no |
| keyring | Location of public keys used for verification. Used only if verify is true. Defaults to /.gnupg/pubring.gpg in the location set by home | `string` | `"/.gnupg/pubring.gpg"` | no |
| max\_history | Maximum number of release versions stored per release. Defaults to 0 (no limit). | `number` | `0` | no |
| name | Release name | `string` | `null` | no |
| namespace | The namespace to install the release into. Defaults to default | `string` | `"default"` | no |
| recreate\_pods | Perform pods restart during upgrade/rollback. Defaults to false | `bool` | `false` | no |
| render\_subchart\_notes | If set, render subchart notes along with the parent. Defaults to true | `bool` | `true` | no |
| replace | Re-use the given name, even if that name is already used. This is unsafe in production. Defaults to false. | `bool` | `false` | no |
| repository | Repository where to locate the requested chart. If is an URL the chart is installed without installing the repository | `string` | `null` | no |
| repository\_ca\_file | The Repositories CA File | `string` | `null` | no |
| repository\_cert\_file | The repositories cert file | `string` | `null` | no |
| repository\_key\_file | The repositories cert key file | `string` | `null` | no |
| repository\_password | Password for HTTP basic authentication against the reposotory | `string` | `null` | no |
| repository\_username | Username for HTTP basic authentication against the repository | `string` | `null` | no |
| reset\_values | When upgrading, reset the values to the ones built into the chart. Defaults to false. | `bool` | `false` | no |
| reuse\_values | When upgrading, reuse the last release's values and merge in any overrides. If 'reset\_values' is specified, this is ignored. Defaults to false | `bool` | `false` | no |
| set | Value block with custom values to be merged with the values yaml. | `list(map(string))` | `[]` | no |
| set\_sensitive | Value block with custom sensitive values to be merged with the values yaml that won't be exposed in the plan's diff. | `list(map(string))` | `[]` | no |
| set\_string | Value block with custom STRING values to be merged with the values yaml. | `list(map(string))` | `[]` | no |
| skip\_crds | If set, no CRDs will be installed. By default, CRDs are installed if not already present. Defaults to false. | `bool` | `false` | no |
| timeout | Time in seconds to wait for any individual kubernetes operation. Defaults to 300 seconds. | `number` | `300` | no |
| values | List of values in raw yaml to pass to helm. Values will be merged, in order, as Helm does with multiple -f options | `list` | `[]` | no |
| verify | Verify the package before installing it. Defaults to false | `bool` | `false` | no |
| wait | Will wait until all resources are in a ready state before marking the release as successful. It will wait for as long as timeout. Defaults to true. | `bool` | `true` | no |## Outputs
| Name | Description |
|------|-------------|
| chart | The name of the chart |
| name | Name is the name of the release |
| namespace | Namespace is the kubernetes namespace of the release |
| revision | Version is an int32 which represents the version of the release |
| status | Status of the release |
| version | A SemVer 2 conformant version string of the chart |## License
Apache 2 Licensed. See LICENSE for full details.