Skip to content
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

fix generate-yaml by escaping newlines #404

Merged
merged 1 commit into from
Jul 21, 2019

Commits on Jul 18, 2019

  1. fix generate-yaml by escaping newlines

    We had a problem with generate-yaml.sh because yq rejected the invalid YAML.
    To work around this we have to make sure the master.yaml is also a valid YAML.
    So functions like Indent are no option. One option to solve this would have been
    base64Encode, but the problem is that Ignition has no property to specify that the
    inline content is base64 encoded. The only would have been `inline: !! binary |`, but
    then yq complains that {{ .CaCert | Base64Encode }} is not correctly encoded.
    
    So the solution was to just replace the new lines with \n
    sbueringer committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    a0919d3 View commit details
    Browse the repository at this point in the history