mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* feat(cluster): add kubernetes endpoint resource * feat(cluster): add kubernetes endpoint service * feat(node): Show which IP address / port the cluster API is listening on * fix(cluster): support multi-master clusters * fix(cluster): support multi-master clusters * feat(k8s/cluster): minor UI update * refactor(k8s/cluster): rename variable * refactor(k8s/endpoints): refactor KubernetesEndpointsFactory Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
44 lines
776 B
JavaScript
44 lines
776 B
JavaScript
/**
|
|
* KubernetesNode Model
|
|
*/
|
|
const _KubernetesNode = Object.freeze({
|
|
Id: '',
|
|
Name: '',
|
|
Labels: {},
|
|
Role: '',
|
|
Status: '',
|
|
CPU: 0,
|
|
Memory: '',
|
|
Version: '',
|
|
IPAddress: '',
|
|
Api: false,
|
|
Taints: [],
|
|
Port: 0,
|
|
});
|
|
|
|
export class KubernetesNode {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNode)));
|
|
}
|
|
}
|
|
|
|
/**
|
|
* KubernetesNodeDetails Model
|
|
*/
|
|
const _KubernetesNodeDetails = Object.freeze({
|
|
CreationDate: '',
|
|
OS: {
|
|
Architecture: '',
|
|
Platform: '',
|
|
Image: '',
|
|
},
|
|
Conditions: [],
|
|
Yaml: '',
|
|
});
|
|
|
|
export class KubernetesNodeDetails {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNode)));
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesNodeDetails)));
|
|
}
|
|
}
|