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

stolonctl spec: don't show some null clusterspec options #736

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Dec 2, 2019

  • show only changed options and omit all the empty/null options
  • when using --defaults show ALL the options

Do this by using two copies of the clusterspec struct, one with all json tags
with omitempty and one without omitempty that will be casted from the original
cluster spec (so we will get an error when we forgot to updated them when
changing the ClusterSpec struct)

* show only changed options and omit all the empty/null options
* when using --defaults show ALL the options

Do this by using two copies of the clusterspec struct, one with all json tags
with omitempty and one without omitempty that will be casted from the original
cluster spec (so we will get an error when we forgot to updated them when
changing the ClusterSpec struct)
@sgotti sgotti force-pushed the stolonctl_spec_improve_output branch from 842f250 to 1796b33 Compare December 2, 2019 09:24
@sgotti sgotti merged commit a13d1d9 into sorintlab:master Dec 2, 2019
@sgotti sgotti added this to the v0.15.0 milestone Dec 3, 2019
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.

1 participant