mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
* feat(cluster): add tabs * feat(cluster): add cluster status informations to cluster detail view * feat(cluster): change data display * feat(cluster): prevent regular users to see cluster health * feat(kubernetes): reviewed ComponentStatus handling * refactor(kubernetes): review apiToModel for KubernetesComponentStatus * refactor(kubernetes): remove unused variable * refactor(kubernetes): clean hasUnhealthyComponentStatus code Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
14 lines
304 B
JavaScript
14 lines
304 B
JavaScript
/**
|
|
* KubernetesComponentStatus Model
|
|
*/
|
|
const _KubernetesComponentStatus = Object.freeze({
|
|
ComponentName: '',
|
|
Healthy: false,
|
|
ErrorMessage: '',
|
|
});
|
|
|
|
export class KubernetesComponentStatus {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesComponentStatus)));
|
|
}
|
|
}
|