-
Notifications
You must be signed in to change notification settings - Fork 549
[Rest Server] kubernetes pods/nodes list api #4037
Conversation
a654d3d
to
4811718
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.
job and vc parts look fine to me
Storage part looks fine to me |
const user = kc.getCurrentUser(); | ||
apiserverConfig.uri = cluster.server; | ||
if (cluster.caFile) { | ||
apiserverConfig.ca = readFileSync(cluster.caFile); |
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.
What's relative between this line and the line 77
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.
Sorry, I forgot to remove those redundant lines. Thanks.
BTW, do we need so complicated logic to init a config? I think the function loadFromCluster is enough |
|
Changes
Kubernetes request model
src/model/kubernetes.js
.kubeconfig
file to connect the remote clusterK8S_KUBECONFIG_PATH
environment variableKubernetes pods/nodes list api
Web portal service page
Miscs