Coder Social home page Coder Social logo

Comments (6)

mmckeen avatar mmckeen commented on June 16, 2024

I also notice in other code paths, we create a cpo object via

client := action.NewInstall(actionConfig)
(actions.NewUpgrade/NewInstall) which is responsible for initializing the repository client. That doesn't seem to happen within the resourceDiff codepath and instead the cpo object is initialized empty
cpo, chartName, err := chartPathOptions(d, m, &chartPathOpts)
and thus a repository client is never present for the getChart call.

from terraform-provider-helm.

mmckeen avatar mmckeen commented on June 16, 2024

I'd also ask that we make

return the error rather than silently failing.

from terraform-provider-helm.

mmckeen avatar mmckeen commented on June 16, 2024

Currently working on a draft PR to fix this.

from terraform-provider-helm.

BBBmau avatar BBBmau commented on June 16, 2024

Hello @mmckeen, can you provide a terraform config that reproduces the output that you're experiencing? Your provided config is lacking information in order to be reproducible.

from terraform-provider-helm.

mmckeen avatar mmckeen commented on June 16, 2024

Hello @mmckeen, can you provide a terraform config that reproduces the output that you're experiencing? Your provided config is lacking information in order to be reproducible.

Hey @BBBmau 👋, the issue will show up whenever the stored manifest for the chart changes as part of the plan, I'm not able to fully produce a config with the issue since we're using private charts but any change to the resource that changes the applied manifest should be able to reproduce the issue.

from terraform-provider-helm.

sbeginCoveo avatar sbeginCoveo commented on June 16, 2024

We are having the same issue.

I tested using the same chart, with identical config, on two resources. One is coming from a public github repo, the other is from our private ECR using OCI. We pushed the chart as-is in our private ECR. The only one providing a manifest diff is the public one.

resource "helm_release" "prometheus_operator" {
  name                = "prometheus-operator"
  chart               = "oci://###.dkr.ecr.us-east-1.amazonaws.com/helmchart/kube-prometheus-stack"
  repository_username = var.private_ecr_creds.username
  repository_password = var.private_ecr_creds.password
  namespace           = var.namespace
  version             = "54.2.2"

  values = sensitive([local.prometheus_values])
}
resource "helm_release" "prometheus_operator" {
  name       = "prometheus-operator"
  repository = "https://prometheus-community.github.io/helm-charts"
  chart      = "kube-prometheus-stack"
  namespace  = var.namespace
  version    = "54.2.2"

  values = sensitive([local.prometheus_values])
}

In these examples, local.prometheus_values is a templated yaml values file using templatefile. Its set sensitive just because we don't want to see the huge values diff as it has low value for us. Manifests, though are high value in the diff

Hope this helps with reproduction

from terraform-provider-helm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.