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

Output only controller specific JSON Schema #27

Merged
merged 1 commit into from
Jan 3, 2018

Conversation

concaf
Copy link
Contributor

@concaf concaf commented Jan 3, 2018

This commit makes schemagen output only JSON Schema for the
Kedge controllers by default. This behavior can be changed by
setting --controller flag to false.

Fixes #22

This commit makes schemagen output only JSON Schema for the
Kedge controllers by default. This behavior can be changed by
setting --controller flag to false.

Fixes kedgeproject#22
func retainOnlyControllers(definitions spec.Definitions) {
for k := range definitions {
switch k {
case "io.kedge.DeploymentSpecMod", "io.kedge.DeploymentConfigSpecMod", "io.kedge.JobSpecMod":
Copy link
Member

Choose a reason for hiding this comment

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

going forward this should be configurable, like give it a config file and then here it is picked from that config!

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