Repository navigation
kubernetes: Deploy kubernetes-provider when creating a cluster - #5254
Conversation
59433d4 to
961fdd2
Compare
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 689 |
|
Trillian test result (tid-1413)
|
|
We've another cks PR @davidjumani which one should be reviewed/tested/merged first cc @Pearl1594 or is this result of testing and your RM work on k8s provider? |
|
@rhtyd They're both independent, and this is related to the RM for the k8s provider |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 708 |
shwstppr
left a comment
There was a problem hiding this comment.
@davidjumani couple of minor comments and a query on state transition
|
@blueorangutan package |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 709 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1431)
|
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
…d/kubernetes/cluster/actionworkers/KubernetesClusterActionWorker.java Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 722 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1445)
|
| private void validateEndpointUrl() { | ||
| String csUrl = ApiServiceConfiguration.ApiServletPath.value(); | ||
| if (csUrl == null || csUrl.contains("localhost")) { | ||
| throw new InvalidParameterValueException("Global setting endpointe.url has to be set to the Management Server's API end point"); |
There was a problem hiding this comment.
Nope, it's a global variable
There was a problem hiding this comment.
What about ApiServiceConfiguration.ApiServletPath.key() instead of endpointe.url?
There was a problem hiding this comment.
Would be better to retrieve as @nvazquez said. Thus, if/when this gets fixed it will automatically reflect in this message.
| if (owner == null) { | ||
| owner = CallContext.current().getCallingAccount(); | ||
| } | ||
| String username = owner.getAccountName() + "-" + KUBEADMIN_ACCOUNT_NAME; |
There was a problem hiding this comment.
Do we assume/create a service account/user globally, or is it per account now (a service user just for k8s use-case)?
There was a problem hiding this comment.
Nevermind read the code, looks like we create if it doesn't exist.
There was a problem hiding this comment.
Per account basis just for kube
| cls.endpoint_url = Configurations.list(cls.apiclient, name="endpointe.url")[0].value | ||
| if "localhost" in cls.endpoint_url: | ||
| endpoint_url = "http://%s:%d/client/api " %(cls.mgtSvrDetails["mgtSvrIp"], cls.mgtSvrDetails["port"]) | ||
| cls.debug("Setting endpointe.url to %s" %(endpoint_url)) |
There was a problem hiding this comment.
Nope, it's a global variable
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 736 |
| private void validateEndpointUrl() { | ||
| String csUrl = ApiServiceConfiguration.ApiServletPath.value(); | ||
| if (csUrl == null || csUrl.contains("localhost")) { | ||
| throw new InvalidParameterValueException("Global setting endpointe.url has to be set to the Management Server's API end point"); |
There was a problem hiding this comment.
Would be better to retrieve as @nvazquez said. Thus, if/when this gets fixed it will automatically reflect in this message.
nvazquez
left a comment
There was a problem hiding this comment.
LGTM, simply left minor suggestions, thanks @davidjumani
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 756 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1485)
|
|
Merging this based on regression tests and lgtms, further review/testing and improvements can be continued at #4329 |
Description
This PR automatically deploys the cloudstack-kubernetes-provider when deploying a kubernetes cluster
Types of changes
Feature/Enhancement Scale
How Has This Been Tested?