1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00
portainer/app/kubernetes/endpoint/models.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
610 B
JavaScript
Raw Normal View History

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)));
}
}