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
Cleanup services/userdata package #877
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8e10045
to
4179459
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i noticed what may be tabs in the yaml, looks like fine otherwise. Oh whoops, this is a WIP, sorry about that, I only just noticed, you probably already caught these
const ( | ||
writeFilesTemplate = `write_files:{{ range . }} | ||
- path: {{.Path}} | ||
encoding: "base64" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be a tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that!
encoding: "base64" | ||
owner: {{.Owner}} | ||
permissions: '{{.Permissions}}' | ||
content: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also appears to be a tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D Seems like my editor loves tabs
|
||
const ( | ||
writeFilesTemplate = `write_files:{{ range . }} | ||
- path: {{.Path}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the spacing here looks funny, but it might still be valid YAML i honestly don't know
hello:
- path: item
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be the same as before in controlplane.go
d1e153c
to
ed17a3b
Compare
Signed-off-by: Vince Prignano <vincepri@vmware.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/lgtm
Signed-off-by: Vince Prignano <vincepri@vmware.com> (cherry picked from commit df5163d)
Signed-off-by: Vince Prignano <vincepri@vmware.com> (cherry picked from commit df5163d)
Signed-off-by: Vince Prignano vincepri@vmware.com
What this PR does / why we need it:
This PR cleans up the
userdata
package and simplifies handling a large amount of files that need to be written to disk. In a future PR, this work is going to be used to store extra files on disk.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Related to #847
Special notes for your reviewer:
Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note: