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

Determine kubernetes service host and port from environment if available #1086

Merged

Conversation

Vlatombe
Copy link
Contributor

This can differ from kubernetes.default.svc in some occasions.

Uses the same logic as the go client (https://github.com/kubernetes/client-go/blob/master/rest/config.go#L313-L336)

@oscerd
Copy link
Member

oscerd commented May 30, 2018

Please add a note to the CHANGELOG

@oscerd
Copy link
Member

oscerd commented May 30, 2018

ok to test

@piyush-garg
Copy link
Contributor

Thanks a lot, @Vlatombe for the PR. Can you please also squash the commits.

…ble.

This can differ from kubernetes.default.svc in some occasions.

Uses the same logic as the go client (https://github.com/kubernetes/client-go/blob/master/rest/config.go#L313-L336)
@Vlatombe Vlatombe force-pushed the determine-master-url-from-environment branch from db29e99 to 402bc74 Compare May 30, 2018 12:42
@piyush-garg
Copy link
Contributor

[merge]

@fusesource-ci fusesource-ci merged commit 8454e28 into fabric8io:master May 31, 2018
@Vlatombe Vlatombe deleted the determine-master-url-from-environment branch May 31, 2018 13:47
@Vlatombe
Copy link
Contributor Author

Vlatombe commented Jun 1, 2018

Thanks @piyush1594 for merging. Do you plan to cut a new release soon?

@Vlatombe
Copy link
Contributor Author

Vlatombe commented Jun 6, 2018

@piyush1594 I'm sorry to nag you but would it be possible to run a release of the current master (including this PR)?

@piyush-garg
Copy link
Contributor

Yaa sure, will do a release in a day or two

@piyush-garg piyush-garg mentioned this pull request Jun 12, 2018
piyush-garg added a commit to piyush-garg/kubernetes-client that referenced this pull request Jun 12, 2018
If we keep that test, it will return different URl for
every other CI. If we do some changes in test, it will
be similar to other tests like setting masterUrl and all.
This started happening after PR fabric8io#1086
Asserting not null and is URL is the only solution
but does not make any difference as we have another tests for this func.
@piyush-garg
Copy link
Contributor

Hey @Vlatombe Kubernetes Client 3.2.0 released which have this.

@Vlatombe
Copy link
Contributor Author

@piyush1594 Thank you!

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.

5 participants