Closed mritunjaysharma394 closed 4 months ago
@mritunjaysharma394 Thanks! would you please sync this change to https://github.com/fluent/helm-charts/tree/main/charts/fluent-operator as well?
Hi @benjaminhuo, thanks so much for the approval, I will definitely do that shortly, I was looking at the discussion in the issue and was confused so I hope that this change really fixes the issue? As some said it's a release issue but I think since you merged it, it somehow fixes or improves it?
What this PR does / why we need it:
This PR is needed to fix the parsing of disableComponentControllers. It seems like the value from helm is being parsed incorrectly. I added a small change in code locally and built a custom image to test with chart, while the manager binary itself worked fine without using chart but on parsing the value with chart, I got this logged:
Which is the reason why it is reporting it, it reads it as
"\"fluentd\""
.It is happening because the
printf
function andquote
function are unnecessary here because the--disable-component-controllers={{ . }}
correctly appends the value without adding extra quotes. On making these changes locally, everything runs fine it seems related to it:Which issue(s) this PR fixes:
Fixes #1212
Does this PR introduced a user-facing change?
Additional documentation, usage docs, etc.: