Closed mohamedazouz closed 1 month ago
Hey @mohamedazouz
Run into the same issue and setting the wait = false
should workaround it
https://github.com/hashicorp/terraform-provider-helm/issues/683
@pmorillas-apheris sorry for the late reply.
I'm not sure if you understand the issue i'm facing but wait will ignore the not-yet-created resources. The issue is that all pods are in init state and waiting for Cassandra schema setup job to create the proper schema but unfortunately, jobs are not being created for some reason which is which i'm asking for help.
Your workaround of using wait = false
, it assumes that the issue is just wait but it's not it's because jobs are not started to setup database schema,
@mohamedazouz
Here's a problem:
In the server-job.yaml
file, there's a condition that checks if .Values.schema.setup.enabled
is true
. If this condition is met, the schema setup jobs will be executed. The issue is that when you deploy using additional config values such as values.postgresql.yaml
or any other database configuration (aurora, cassandra, mysql, postgres), this setting is being overwritten and turned off because those db config values have schema.setup.enabled = false by default. For example, If you open values. postgresql.yaml
, you will find:
schema:
setup:
enabled: false
Solution:
So, the solution is quite simple. You just need to specify schema.setup.enabled = true
explicitly in your terraform file using helm_release set
block. Make sure it's boolean.
@LukaGiorgadze Actually, the enable job didn't work with me and I didn't want to spend more time checking another workaround
This should now be fixed by #522 which removes the use of helm hooks entirely. Please re-open if you still see problems.
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
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
Observation
helm_release
unlike when we use helm installhelm_template
to getmanifest
output for the chart then deploy it usingkubectl apply
, it worked as expectedExpected Behavior
Minimal Reproduction
git clone https://github.com/temporalio/helm-charts
terraform apply
Environment/Versions
Additional context