Ensure the GCI metadata files do not have newline at the end#38727
Conversation
|
LGTM |
|
@Amey-D Thanks for the fix. I use vim to open a file, and type However, I need to figure out what is added by vim. :/ |
|
OK. Vim adds EOL at the end of each line automatically http://stackoverflow.com/questions/16222530/why-do-i-need-vim-in-binary-mode-for-noeol-to-work/16224292#16224292. If I generate the file with Anyhow, at least it's clear that this PR will work! :) However, I still think we should fix GCI if possible because this is so fragile and confusing. :/ |
|
The title of the PR should be "trailing newline" instead of whitespace :-) +1 to make the consumer of this metadata more robust. It'd also help if we surface the information/configuration. Could we add something to our e2e test framework to collect such information or add a test for GCI? |
|
Agreed with @Random-Liu and @yujuhong the proper and more robust fix should at GCI side, not here. But I am ok to take this for short-term fix for running GCI on GCE. |
|
Offline discussion with @Amey-D:
cc/ @kubernetes/goog-node @kubernetes/goog-image @saad-ali for 1.5 @jessfraz for 1.4 |
|
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
|
thanks! |
|
Automatic merge from submit-queue |
|
cherry-picked in #38781 |
|
Cherry-picked to 1.5 in #40184 |
Fixes #36708
@dchen1107 @Random-Liu can one of you help with the review?
cc @kubernetes/goog-image FYI