mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(k8s/cluster): Show the cluster leader (#4027)
* feat(cluster): Show the cluster leader * feat(cluster): Restrict leader label only to admin users * feat(kubernetes): minor UI update * feat(endpoint): move all KubernetesEndpoint related code to a single endpoint sub-folder and change few things * fix(k8s/cluster): fix conflict leftover * feat(k8s/cluster): review component leader UX * refactor(k8s/node): remove useless call to endpoints * refactor(k8s/endpoint): relocate variable declaration Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
This commit is contained in:
parent
f765c63c74
commit
94676df329
7 changed files with 162 additions and 16 deletions
17
app/kubernetes/endpoint/models.js
Normal file
17
app/kubernetes/endpoint/models.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
export const KubernetesEndpointAnnotationLeader = 'control-plane.alpha.kubernetes.io/leader';
|
||||
|
||||
/**
|
||||
* KubernetesEndpoint Model
|
||||
*/
|
||||
const _KubernetesEndpoint = Object.freeze({
|
||||
Id: '',
|
||||
Name: '',
|
||||
Namespace: '',
|
||||
HolderIdentity: '',
|
||||
});
|
||||
|
||||
export class KubernetesEndpoint {
|
||||
constructor() {
|
||||
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesEndpoint)));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue