-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fix various usability problems in yaml.*
#638
Conversation
37bbedb
to
c634ada
Compare
yaml.ConfigGroup
to take URLs as argumentyaml.*
c6d600c
to
52c1308
Compare
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.
Can we add tests for the fixes + new features?
} | ||
} | ||
|
||
/** @ignore */ function isUrl(s: string): boolean { | ||
return s.startsWith("http://") || s.startsWith("https://") |
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.
Should we be instead attempt to parse a URL with https://nodejs.org/api/url.html#url_class_url and return true
if parsing succeeds? This would allow us to handle file URLs, etc.
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.
(I do see that what you've written matches the prior behavior of ConfigFile
, so no urgency here)
The fields of the Kubernetes core resource types are tagged with Go's `"json:"` serialization metadata. They expect things like JavaScript's `Date` to be serialized as string. Fixes #501.
52c1308
to
a559e41
Compare
Fixes #448.
Fixes #502.
Fixes #501.