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
Installation option (Docker install/Helm Chart): Not sure.
Proxy/Cert Details: n/a
Information about the Cluster
Kubernetes version: v1.30.6+rke2r1
Cluster Type (Local/Downstream): Downstream
Infrastructure Provider = vSphere
User Information
What is the role of the user logged in? Admin
Provider Information
What is the version of the Rancher v2 Terraform Provider in use? reproduced with v5.x and v6
What is the version of Terraform in use? Terraform v1.0.11 on windows_amd64
Describe the bug
I'm using the rancher provider and adding a couple of add-on configuration options related to vSphere. The provider works fine, BUT when I look in the UI, I'm missing parts of my vSphere options...
When I view the YAML, I see that the values ARE there, but so is a single line of whitespace (line 314):
If I remove that whitespace, the UI displays my add-on config normally.
To Reproduce
Use the TF rpoivider to spin up a cluster with some vSphere add-on configs?
Actual Result
The TF provider pooped a blank line into my config and broke the UI.
Expected Result
I'd expect that the provider would clean up any undesirable characters before talking to the Rancher UI.
Screenshots
see above.
Additional context
nope.
The text was updated successfully, but these errors were encountered:
st33v
changed the title
[BUG] Rancher provider injects whitespace into rye_config yaml which breaks the Rancher UI.
[BUG] Rancher provider injects whitespace into rke_config yaml which breaks the Rancher UI.
Dec 18, 2024
Yes, I've wrapped any yaml inputs into the provider in trimspace(yamlencode(<actual_config>)). SO... I'm not even using any heredoc strings in my input.... It's all HCL that's encoded to yaml and then has trimspace() run on it. I can't sanitize my input any more than that unless you think chomp() would do something different.
________________________________
From: Matt Trachier ***@***.***>
Sent: Wednesday, January 8, 2025 10:56 AM
To: rancher/terraform-provider-rancher2 ***@***.***>
Cc: Steven Neuharth ***@***.***>; Author ***@***.***>
Subject: Re: [rancher/terraform-provider-rancher2] [BUG] Rancher provider injects whitespace into rke_config yaml which breaks the Rancher UI. (Issue #1457)
[EXTERNAL EMAIL] CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. chrexternaltag
Have you tried chomping the value in the Terraform config?
—
Reply to this email directly, view it on GitHub<#1457 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB5SNVPUX72V4SSGD2C3HND2JVKDJAVCNFSM6AAAAABT3OFWROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZYGE3DGOJSHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
*************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the sender of the e-mail. The sender of the e-mail accepts no liability for any damage caused by any virus transmitted by this email. (IP)
*************************************************************************************************************************
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
I'm using the rancher provider and adding a couple of add-on configuration options related to vSphere. The provider works fine, BUT when I look in the UI, I'm missing parts of my vSphere options...
When I view the YAML, I see that the values ARE there, but so is a single line of whitespace (line 314):
If I remove that whitespace, the UI displays my add-on config normally.
To Reproduce
Use the TF rpoivider to spin up a cluster with some vSphere add-on configs?
Actual Result
The TF provider pooped a blank line into my config and broke the UI.
Expected Result
I'd expect that the provider would clean up any undesirable characters before talking to the Rancher UI.
Screenshots
see above.
Additional context
nope.
The text was updated successfully, but these errors were encountered: