-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not find : Stat : The system cannot find the path specified #405
Comments
Hello! Try changing to: values = [file("file.yaml")] Note the quotes around the file name. |
Hi @relu, thanks for the response. They are quoted in my codebase, I'll update the example above to reflect that. |
@colin-lyman Try using the absolute path via
https://www.terraform.io/docs/configuration/functions/file.html#examples Notes:
P.s. In any case, this issue is not related directly to helm provider |
Hi @legal90, Thanks for the response, however, the issue is not with pulling the config file. I've had the charts installed locally instead of in Azure CR and has worked fine. Also if Values = "", the error is still generated. Switching TF_LOG to TRACE I can see the following outputs (with empty values param): |
Ah, ok. Then I would suggest to avoid using resource "helm_release" "base" {
name = "chart_name"
repository = "<acr_repo_name_or_url>"
chart = "<chart_name>"
dependency_update = true
namespace = "some-namespace"
values = [file("file.yaml")]
} Does the issue still persist? |
@legal90 Thanks for the reply. I think I've narrowed the problem further. This only seems to happen with umbrella charts that have dependencies on other charts. Although with dependency_update = true I would have expected helm to retrieve the dependencies from their respective repositories. |
I encounter the same issue. Same scenario as @colin-lyman, with an umbrella chart that has a dependency on another chart. helm.tf resource "helm_release" "cert_manager" {
name = "cert-manager"
namespace = kubernetes_namespace.cert_manager.metadata.0.name
chart = "${path.module}/k8s/cert-manager"
dependency_update = true
} k8s/cert-manager/Chart.yaml apiVersion: v1
name: cert-manager
version: 1.0.0
dependencies:
- name: cert-manager
version: 0.14.0
repository: https://charts.jetstack.io Output:
Happy to assist with any debugging! |
Good morning. I had exactly the same issue caused by dependency to another chart. |
Same here and, temporarily, resolved by running a
|
I faced same issue when was deploying helm_release with dependancies from GitlabCI pipeline. I have a chart installation from filesystem, not from registry. So I tried both relative path, like So making dependency update as a separate step |
* Updates pipeline to the latest version (including change to use release-drafter for release) * Wraps all the config into a single helm chart with dependencies * Manually adds subcharts from dependencies to workaround helm terraform provider bug (hashicorp/terraform-provider-helm#405) * Sets fail-fast to false * Sets disable_openapi_validation to true * Waits for sccs to be deleted * Updates validate deploy logic
Any updates? |
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you! |
Hello, getting an undocumented error using helm provider for TF 0.12. Unclear to what this error is.
Terraform Version
Terraform version: 0.12.20
Go runtime version: go1.12.13
Affected Resource(s)
Terraform Configuration Files
Debug Output
2020/02/12 11:08:18 [DEBUG] module.aks-helm.helm_release.base: apply errored, but we're indicating that via the Error pointer rather than returning it: could not find : Stat : The system cannot find the path specified.
2020/02/12 11:08:18 [ERROR] module.aks-helm: eval: *terraform.EvalApplyPost, err: could not find : Stat : The system cannot find the path specified.
2020/02/12 11:08:18 [ERROR] module.aks-helm: eval: *terraform.EvalSequence, err: could not find : Stat : The system cannot find the path specified.
Expected Behavior
Helm release to be deployed to k8s cluster
Actual Behavior
"Error: could not find : Stat : The system cannot find the path specified."
Steps to Reproduce
terraform apply
Important Factoids
Using Windows 10 Device running TF locally, experiencing the same issue on another Windows device.
UPDATE
Changing the chart variable to the local file path of the uncompressed umbrella chart and running 'helm dep up' (within the chart directory) is performing the release. This is a short term workaround until it's known how umbrella charts from an external repo and using the requirements.yaml file to pull child charts from an external repo too.
UPDATE 2
Added quotes to the above example values file path.
The text was updated successfully, but these errors were encountered: