Skip to content

Create KubernetesClientConfiguration from pre-loaded K8SConfiguration #170

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

Closed
wants to merge 1 commit into from

Conversation

ThatRendle
Copy link

Hi. I'm working on a GUI application that loads the K8SConfiguration, then creates KubernetesClientConfiguration instances based on user selection. Since I've already got the config data loaded, it makes sense to be able to create the client config directly from it, so I've added a new static method BuildConfig that takes the K8SConfiguration instance as a parameter. I guess I could have made the existing GetKubernetesClientConfiguration method public, but I don't like messing with existing API.

Oh, I also fixed up a doc comment that was wrong :)

@ThatRendle
Copy link
Author

I've signed the CNCF CLA now.

@brendandburns
Copy link
Contributor

@markrendle I think you must have changed line endings or spacing or something?

The PR shows a bunch of diffs that don't actually look like diffs and it makes it pretty hard to see the actual changes.

Can you see what happened and clean up the diff for easier reviewing?

Many thanks!

@brendandburns
Copy link
Contributor

(also Travis is failing...)

@ThatRendle
Copy link
Author

@brendandburns Oops, sorry about that. Will fix this afternoon.

@brendandburns
Copy link
Contributor

hey @markrendle is this PR still active?

Thanks!

@gitfool
Copy link

gitfool commented Aug 29, 2018

I recently cloned this repo and noticed some files are mixing EOL styles within the same file. It would help if the repo took control and added a .gitattributes file. See dealing-with-line-endings and the gitattributes repo for some relevant templates.

@tg123
Copy link
Member

tg123 commented Aug 29, 2018

@gitfool historical reason before .editorconfig was checked in

@gitfool
Copy link

gitfool commented Aug 29, 2018

Right. Either way any previously existing files should be cleaned up to meet the newly enforced style. Otherwise, in the EOL case at least, Visual Studio will keep popping up warning dialogs:

image

(One could uncheck "always show this dialog", but I prefer to be warned so I can fix any issues.)

@brendandburns
Copy link
Contributor

@gitfool, I'm happy to have someone send a cleanup PR converting to \n line endings...

Thanks!

@itowlson itowlson added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 1, 2018
@itowlson
Copy link
Contributor

itowlson commented Oct 1, 2018

@markrendle Sent a PR to your PR to rebase it onto latest master (with all the line ending shenanigans hopefully sorted out). RendleLabs#1

If you don't have time/energy to look at this, let me know if it would be okay for me to pick up your original change and recreate it (with appropriate credit of course).

@ThatRendle
Copy link
Author

@itowlson I'd be really happy if you could recreate this, I don't have the bandwidth at the moment.

@itowlson
Copy link
Contributor

Superseded by #213 which rebases this onto latest master.

@itowlson itowlson closed this Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants