fix: intendation corrected in fluentbit-fluentBit.yaml #454
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I created this PR because I was struggling to add (multiple) annotations to my fluent-bits. I noticed that this code (
fluent-operator/charts/fluent-operator/templates/fluentbit-fluentBit.yaml
Line 43 in 0ca8da2
Note that there are 6 spaces before key0 and only 4 spaces before key1 and key2.
The above issue only manifests if multiple annotations are supplied. If one only key0 and value0 are supplied it will work just fine as all keys and values and are intended the same way but as soon as there is more than one key/value pair. key-pair one will be intended two more spaces to the right than all the others as the statement that generates this output itself has two spaces before it.
The above error-pattern seems to be repeated several times in the code. I tried to fix all occurrences in this file.
What this PR does / why we need it:
Which issue(s) this PR fixes:
This fixes an issue where annotations and VolumeMounts do not work if more than one is supplied.
Does this PR introduced a user-facing change?
Additional documentation, usage docs, etc.: