-
Notifications
You must be signed in to change notification settings - Fork 64
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
Define mountSources as being true by default #145
Conversation
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]>
// 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. |
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.
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.
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.
Ah, that's a good point @davidfestal. I can update the type.
Signed-off-by: John Collier <[email protected]>
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.
Seems OK to me, Che-wise. @l0rd is it OK for you as well ?
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
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 setdedicatedPod
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