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

config: fix failing v1alpha2 -> v1alpha3 migration #799

Merged
merged 3 commits into from
Oct 13, 2021

Conversation

iwilltry42
Copy link
Member

@iwilltry42 iwilltry42 commented Oct 13, 2021

  • add validation as extra step after migration
  • add missing json struct tags to new v1alpha3 config fields
  • add unit tests
  • add missing omitempty tags to configs to avoid (un-)marshalling issues
  • drop string type for time.Duration type field in JSON Schema (doesn't work properly sometimes due to broken handling of time.Duration as per all: decide what can implement TextMarshaler/TextUnmarshaler golang/go#10275)

fixes #790

- add validation as extra step after migration
- add missing json struct tags to new v1alpha3 config fields
@iwilltry42 iwilltry42 added this to the v5.0.1 milestone Oct 13, 2021
@iwilltry42 iwilltry42 self-assigned this Oct 13, 2021
@iwilltry42 iwilltry42 force-pushed the fix/break-on-empty-config-field branch from 3262e99 to c77598e Compare October 13, 2021 18:57
@iwilltry42 iwilltry42 merged commit 594e3ce into main Oct 13, 2021
@iwilltry42 iwilltry42 deleted the fix/break-on-empty-config-field branch October 13, 2021 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Failed to create cluster with empty fields in k3d.yaml
1 participant