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

Supports JSON configs #48

Merged
merged 1 commit into from
Aug 10, 2017
Merged

Supports JSON configs #48

merged 1 commit into from
Aug 10, 2017

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Aug 10, 2017

Sonobuoy looks at the extensions of the files the configmap defines
and uses a loader implementation to Unmarshal the bytes into a struct.

Both YAML and JSON are supported with respective file extensions of .yaml and .json.

Signed-off-by: Chuck Ha chuck@heptio.com

Sonobuoy looks at the extensions of the files the configmap defines
and uses a loader implementation to Unmarshal the bytes into a struct.

Both YAML and JSON are supported with respective file extensions of .yaml and .json.

Signed-off-by: Chuck Ha <chuck@heptio.com>
@chuckha chuckha requested a review from timothysc August 10, 2017 20:47
@chuckha
Copy link
Contributor Author

chuckha commented Aug 10, 2017

Motivation here is that if we use jsonnet to nicely define the plugin configs, we will end up with a ConfigMap that defines JSON plugin configs instead of the expected YAML.

We COULD wrap the YAML in a jsonnet string, but that was rejected in PR #9. This PR adds support for JSON plugin config definitions which unblocks #5.

@timothysc timothysc requested a review from kensimon August 10, 2017 20:59
@timothysc timothysc added kind/enhancement New or improved functionality p2-moderate labels Aug 10, 2017
@timothysc timothysc added this to the v0.9.0 milestone Aug 10, 2017
@timothysc
Copy link
Contributor

@kensimon could you review please.

Copy link

@kensimon kensimon left a comment

Choose a reason for hiding this comment

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

LGTM

@chuckha chuckha merged commit 2641cfd into vmware-tanzu:master Aug 10, 2017
@chuckha chuckha deleted the json branch August 10, 2017 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New or improved functionality p2-moderate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants