Skip to content

Commit 67aa415

Browse files
committed
Allow local chart installations
1 parent d82e91e commit 67aa415

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The module has been tested with:
3232
| <a name="module_database"></a> [database](#module\_database) | ./modules/database | n/a |
3333
| <a name="module_eks"></a> [eks](#module\_eks) | ./modules/eks | n/a |
3434
| <a name="module_networking"></a> [networking](#module\_networking) | ./modules/networking | n/a |
35-
| <a name="module_operator"></a> [operator](#module\_operator) | github.com/MaterializeInc/terraform-helm-materialize | v0.1.4 |
35+
| <a name="module_operator"></a> [operator](#module\_operator) | github.com/MaterializeInc/terraform-helm-materialize | v0.1.5 |
3636
| <a name="module_storage"></a> [storage](#module\_storage) | ./modules/storage | n/a |
3737

3838
## Resources
@@ -71,6 +71,7 @@ The module has been tested with:
7171
| <a name="input_enable_cluster_creator_admin_permissions"></a> [enable\_cluster\_creator\_admin\_permissions](#input\_enable\_cluster\_creator\_admin\_permissions) | To add the current caller identity as an administrator | `bool` | `true` | no |
7272
| <a name="input_enable_monitoring"></a> [enable\_monitoring](#input\_enable\_monitoring) | Enable CloudWatch monitoring | `bool` | `true` | no |
7373
| <a name="input_environment"></a> [environment](#input\_environment) | Environment name (e.g., prod, staging, dev) | `string` | n/a | yes |
74+
| <a name="input_helm_chart"></a> [helm\_chart](#input\_helm\_chart) | Chart name from repository or local path to chart. For local charts, set the path to the chart directory. | `string` | `"materialize-operator"` | no |
7475
| <a name="input_helm_values"></a> [helm\_values](#input\_helm\_values) | Additional Helm values to merge with defaults | `any` | `{}` | no |
7576
| <a name="input_install_materialize_operator"></a> [install\_materialize\_operator](#input\_install\_materialize\_operator) | Whether to install the Materialize operator | `bool` | `false` | no |
7677
| <a name="input_install_metrics_server"></a> [install\_metrics\_server](#input\_install\_metrics\_server) | Whether to install the metrics-server for the Materialize Console | `bool` | `true` | no |
@@ -96,6 +97,7 @@ The module has been tested with:
9697
| <a name="input_service_account_name"></a> [service\_account\_name](#input\_service\_account\_name) | Name of the service account | `string` | `"12345678-1234-1234-1234-123456789012"` | no |
9798
| <a name="input_single_nat_gateway"></a> [single\_nat\_gateway](#input\_single\_nat\_gateway) | Use a single NAT Gateway for all private subnets | `bool` | `false` | no |
9899
| <a name="input_tags"></a> [tags](#input\_tags) | Default tags to apply to all resources | `map(string)` | <pre>{<br/> "Environment": "dev",<br/> "Project": "materialize",<br/> "Terraform": "true"<br/>}</pre> | no |
100+
| <a name="input_use_local_chart"></a> [use\_local\_chart](#input\_use\_local\_chart) | Whether to use a local chart instead of one from a repository | `bool` | `false` | no |
99101
| <a name="input_vpc_cidr"></a> [vpc\_cidr](#input\_vpc\_cidr) | CIDR block for VPC | `string` | `"10.0.0.0/16"` | no |
100102

101103
## Outputs

main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module "database" {
7979
}
8080

8181
module "operator" {
82-
source = "github.com/MaterializeInc/terraform-helm-materialize?ref=v0.1.4"
82+
source = "github.com/MaterializeInc/terraform-helm-materialize?ref=v0.1.5"
8383

8484
count = var.install_materialize_operator ? 1 : 0
8585

@@ -99,6 +99,10 @@ module "operator" {
9999
helm_values = local.merged_helm_values
100100
instances = local.instances
101101

102+
// For development purposes, you can use a local Helm chart instead of fetching it from the Helm repository
103+
use_local_chart = var.use_local_chart
104+
helm_chart = var.helm_chart
105+
102106
providers = {
103107
kubernetes = kubernetes
104108
helm = helm

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,18 @@ variable "install_materialize_operator" {
266266
default = false
267267
}
268268

269+
variable "helm_chart" {
270+
description = "Chart name from repository or local path to chart. For local charts, set the path to the chart directory."
271+
type = string
272+
default = "materialize-operator"
273+
}
274+
275+
variable "use_local_chart" {
276+
description = "Whether to use a local chart instead of one from a repository"
277+
type = bool
278+
default = false
279+
}
280+
269281
variable "operator_version" {
270282
description = "Version of the Materialize operator to install"
271283
type = string

0 commit comments

Comments
 (0)