-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image Automation Controller is reformatting inline blocks in a single line (Flux 2.2.0) #616
Comments
Can you post here |
|
Ok can you paste there the HelmRelease as it is in your Git repo, I want to see where the markers are. |
I found a solution working for me ! In fact it's when there is a space after a |
Please find below a extract of the HelmRelease. When image automation controller picks a change on subchart B, it also changes subchart A inline block config to single line.
PS: We also have inline configs in annotations, but those are always kept OK. |
@ruiengana do you mixed indentation in your YAML, tabs and spaces? If so, then that will trigger a full reformat. |
We may very well have. Isn't that supported? Which one should we adopt to avoid the full reformat, tab or spaces? |
I've used tabs to write a test for these issues 0502196 |
In our case, the use of space is strictly necessary. Is there any intention to add support for yaml files with tabs and spaces mixed? |
No, this restriction comes from Kubernetes Go YAML package, Flux does not uses it's own YAML formatter. |
@cimillas I suggest moving the |
Reformat which causes merge multiple line to one line is still being triggered if there is space/whitespace at the end of any line, so make sure you don't have it to avoid this issue |
related to #528
@stefanprodan we just upgraded to Flux 2.2.0 and problem is still occurring.
All our HelmRelease files getting picked up by the Image Automation Controller are getting inline blocks reformatted to single line blocks.
When a HelmRelease manifest has a block configuration like below and is updated by image automation controller, blocks are overwritten as a single line of code making it unreadable. Code blocks should not be reformatted.
For example, this is pipe block
After image automation controller commit becomes
This behaviour is unexpected, we would like blocks to stay exactly as they were before.
The text was updated successfully, but these errors were encountered: