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

Define mountSources as being true by default #145

Merged
merged 2 commits into from
Oct 6, 2020

Conversation

johnmcollier
Copy link
Member

What does this PR do?

This PR updates the devfile schema to define the mountSources field as being true for all non-plugin components and components that don't set dedicatedPod to true.

What issues does this PR fix or reference?

#75

Is your PR tested? Consider putting some instruction how to test your changes

Docs PR

Updates the schema to state that `mountSources` will be set to
true by default for all non-plugin components.

Signed-off-by: John Collier <[email protected]>
@johnmcollier johnmcollier changed the title Make mountSources true by default Define mountSources as being true by default Oct 2, 2020
// Toggles whether or not the project source code should
// be mounted in the component.
//
// Defaults to true for all component types except plugins and components that set `dedicatedPod` to true.
Copy link
Collaborator

Choose a reason for hiding this comment

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

GO-wise, you should change the type to *bool instead of bool if you want to change the default value. But that's slightly less convenient to work with in the GO source code since you have to check whether the field is nil before taking its value.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, that's a good point @davidfestal. I can update the type.

Copy link
Collaborator

@davidfestal davidfestal left a comment

Choose a reason for hiding this comment

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

Seems OK to me, Che-wise. @l0rd is it OK for you as well ?

Copy link
Contributor

@l0rd l0rd left a comment

Choose a reason for hiding this comment

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

LGTM

@johnmcollier johnmcollier merged commit fdbc9b1 into devfile:master Oct 6, 2020
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.

6 participants