Comments (6)
I also notice in other code paths, we create a cpo object via
(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
and thus a repository client is never present for the getChart
call.from terraform-provider-helm.
I'd also ask that we make
return the error rather than silently failing.from terraform-provider-helm.
Currently working on a draft PR to fix this.
from terraform-provider-helm.
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.
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.
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)
- Release > v2.9.0 fails to install with "error validating data: the server has asked for the client to provide credentials" for RKE clusters HOT 4
- Perpetual diff with set_sensitive values on helm_release
- Helm not detecting out-of-band changes/drift and reverting them upon apply
- could not login to OCI registry "xxxx": Get "https://xxxx/v2/": http: server gave HTTP response to HTTPS client
- Helm provider 2.12.0 broken HOT 1
- Re-release with Helm 3.12.2 (3.12.1 cannot download charts) HOT 2
- helm_release does not track drift in digest for OCI charts HOT 1
- Replace archived mitchellh packages
- Error: could not download chart: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://xyz.azurecr.io/oauth2/token?scope=repository%3Aabc%3Apull&service=xyz.azurecr.io: 401 Unauthorized HOT 3
- How to configure credentials for S3 repository? HOT 2
- Suppress metadata changes at terraform plan? HOT 7
- Facing context deadline exceeded while updating helm_release HOT 2
- Semver and schema HOT 1
- Argument for the Helm reset-then-reuse-values flag HOT 1
- Add custom labels to helmv3 release secret HOT 1
- Use of `template_file` prevents terraform init from working on Apple M1/2/3 machines
- Repository Password Stored in Plan HOT 2
- `metadata` always recomputes, causing redeployment for every single plan-apply HOT 2
- terraform plan got error because local chart not rendered yet HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-helm.