You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubectl -n monitoring describe cm/prometheus-server | grep -A 4 1.1.1.1
- url: http://1.1.1.1:9090/api/v1/write
write_relabel_configs:- action: drop
regex: (.*_(duration_seconds|seconds_total|sizes)_bucket)
source_labels: [__name__]
Actual Behavior
kubectl -n monitoring describe cm/prometheus-server | grep -A 4 1.1.1.1
- url: http://1.1.1.1:9090/api/v1/write
write_relabel_configs:- action: drop
regex: (.*_(duration_seconds|seconds_total|sizes)_bucket)
source_labels: '[__name__]'
Description
The main issue is that when we use yamlencode and we complete a value by something between [ ], the string is included between simple quote. I tried also the trim function to force removal of these simple quote but no way.
If I check the plan or content in terraform.tfstate, there is no trace of simple quote, there is only double quote (string) like expected.
But once the configmap is created, this string is added between 2 simple quotes (that broke prometheus) and I don't understand what can explain this behavior :/
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
terraform apply
Expected Behavior
Actual Behavior
Description
The main issue is that when we use yamlencode and we complete a value by something between [ ], the string is included between simple quote. I tried also the trim function to force removal of these simple quote but no way.
If I check the plan or content in terraform.tfstate, there is no trace of simple quote, there is only double quote (string) like expected.
But once the configmap is created, this string is added between 2 simple quotes (that broke prometheus) and I don't understand what can explain this behavior :/
Community Note
The text was updated successfully, but these errors were encountered: