forked from openshift/cluster-api-provider-openstack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix generate-yaml by escaping newlines (kubernetes-sigs#404)
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
- Loading branch information
1 parent
ec9bdac
commit dca304d
Showing
2 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters