Skip to content
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

helm configure non existing namespace does nothing (and no error message) #427

Closed
ebini opened this issue Feb 27, 2020 · 5 comments
Closed

Comments

@ebini
Copy link

ebini commented Feb 27, 2020

Terraform Version

Terraform v0.12.20

  • provider.helm v1.0.0

Affected Resource(s)

  • helm_release

Terraform Configuration Files

resource "helm_release" "loki" {
  name       = "lokiterraform"
  repository = data.helm_repository.stable.metadata[0].name
  chart      = "loki-stack"
  namespace  = "test"
}

Expected Behavior

create namespace or exit with error

Actual Behavior

exits with no error, but nothing has been created

Steps to Reproduce

  1. terraform apply
@zdevi
Copy link

zdevi commented Mar 2, 2020

Hi, I have the exact same problem, if namespace doesn't exist, no ressources are created, but terraform ends saying all is OK.
Working good if i previously create the namespace.

@aaronmell
Copy link
Contributor

Its likely that helm doesn't return an error. Can you try creating a chart with helm directly and see if you get an error message?

@dawidmalina
Copy link

It will return error message like this:

Error: create: failed to create: namespaces "test" not found

Looks like this functionality (namespace creation) was remove in helm3 - helm/helm#6794

With the new helm release --create-namespace option will be added - helm/helm#7648

@jrhouston
Copy link
Contributor

This was fixed in 1.1.0.

@ghost
Copy link

ghost commented May 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants