-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
implement Kubeconfig::from_yaml #719
Conversation
8f7a84a
to
cbc56ce
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.
minor comments
5a24b06
to
efe3a15
Compare
Rebased and squashed to clean up the history |
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.
tiny comment on docs otherwise looks good!
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.
another nit
Signed-off-by: Cyril Plisko <cyril.plisko@mountall.com>
Signed-off-by: Cyril Plisko <cyril.plisko@mountall.com>
Fixes kube-rs#718 Signed-off-by: Cyril Plisko <cyril.plisko@mountall.com>
Signed-off-by: Cyril Plisko <cyril.plisko@mountall.com>
Signed-off-by: Cyril Plisko <cyril.plisko@mountall.com>
efe3a15
to
4a34d2d
Compare
Thanks a lot @imp. Minor feature with much back and forth, but useful, and you ended up helping uncover an inconsistency in our parsing logic, so appreciate the time here! |
Addresses #718
Motivation
Allow consumers to load
kubeconfig
from arbitrary sources with minimal frictionSolution
Refactor code for reading and merging
Kubeconfig
yaml documents into the separate public method as well as implementFromStr
to make it more idiomatic (I.e. usestr::parse()
)Kubeconfig::read_from
is updated to use a multi-document reader (kubeconfig_from_yaml
) in a separate commit.So if this change would appear to be controversial it could be easily dropped.
Tests are updated to use new functionality as well