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

Consolidate methods that read and write platform spec'd TOML #1236

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

natalieparellano
Copy link
Member

@natalieparellano natalieparellano commented Oct 31, 2023

in platform/files package.

With the exception of reading /config/metadata.toml in the launcher, as we want to avoid importing the buildpack package, and platform/files depends on it.

Summary

Release notes

Consolidates methods that read and write platform spec'd TOML in the platform/files package

@natalieparellano natalieparellano force-pushed the files-handler branch 3 times, most recently from f07a204 to b946759 Compare November 1, 2023 17:12
var Handler = &TOMLHandler{}

// TOMLHandler reads and writes lifecycle configuration files in TOML format.
type TOMLHandler struct{}
Copy link
Member Author

@natalieparellano natalieparellano Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we ever wanted the platform to be able to supply JSON or YAML files, we could implement an alternate handler with minimal other changes.

in platform/files package.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano marked this pull request as ready for review November 2, 2023 13:50
@natalieparellano natalieparellano requested a review from a team as a code owner November 2, 2023 13:50
Copy link
Contributor

@jabrown85 jabrown85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@natalieparellano natalieparellano force-pushed the files-handler branch 2 times, most recently from 1c7af06 to 3781972 Compare November 3, 2023 15:58
…esting

This can help us diagnose weird failures in CI

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano merged commit 33c5b89 into main Nov 3, 2023
@natalieparellano natalieparellano deleted the files-handler branch November 3, 2023 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants