helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[Bug] Job resources are not getting created with terraform helm_release

Open mohamedazouz opened this issue 1 year ago • 4 comments

What are you really trying to do?

I'm trying to install helm chart using terraform helm provider for that I'm using terraform helm_release resource to install the chart.

I have created a ticket in terraform-helm-provider repo but it seems like the issue exists in chart itself.

Describe the bug

I'm using the following terraform code to install the chart

// Temporal Chart: https://github.com/temporalio/helm-charts

resource "helm_release" "chart" {
  name             = "temporaltest"
  chart            = /local/Temporal/chart/path"
  create_namespace = true
  values           = []

  dependency_update = true
  timeout           = 15 * 60
}

After applying above terraform code, all pods are created but they are pending for init containers to finish, it's being pending forever, here's result of kubectl get pods

temporal-cassandra-0                  1/1     Running             0          2m2s
temporal-history-6f985967d8-wrngs     0/1     Init:2/4            0          2m6s
temporal-frontend-85f6dbdd85-44s4s    0/1     Init:2/4            0          2m6s
temporal-matching-65c75675d8-lfwz5    0/1     Init:2/4            0          2m6s
temporal-worker-5c46bd7dcc-2bhf2      0/1     Init:2/4            0          2m8s

Observation

  • Jobs resources are not getting created when using helm_release unlike when we use helm install
  • We tried to use helm_template to get manifest output for the chart then deploy it using kubectl apply, it worked as expected

Expected Behavior

  • All resources in the chart should be created similarly like when I use helm install:
> helm install  temporaltest . --timeout 15m

Minimal Reproduction

  1. git clone https://github.com/temporalio/helm-charts
  2. Adjust local chart path to the cloned repo path
  3. terraform apply

Environment/Versions

Terraform version: v1.2.0
Provider version: 2.9.0
Kubernetes version: 1.23

Additional context

mohamedazouz avatar Jul 05 '23 14:07 mohamedazouz