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>
29 lines
610 B
JavaScript
29 lines
610 B
JavaScript
export const KubernetesEndpointAnnotationLeader = 'control-plane.alpha.kubernetes.io/leader';
|
|
|
|
/**
|
|
* KubernetesEndpoint Model
|
|
*/
|
|
const _KubernetesEndpoint = Object.freeze({
|
|
Id: '',
|
|
Name: '',
|
|
Namespace: '',
|
|
HolderIdentity: '',
|
|
Subsets: [],
|
|
});
|
|
|
|
export class KubernetesEndpoint {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesEndpoint)));
|
|
}
|
|
}
|
|
|
|
const _KubernetesEndpointSubset = Object.freeze({
|
|
Ips: [],
|
|
Port: 0,
|
|
});
|
|
|
|
export class KubernetesEndpointSubset {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesEndpointSubset)));
|
|
}
|
|
}
|