1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

refactor(kube/cluster): migrate node apps table to react [EE-4691] (#11016)

This commit is contained in:
Chaim Lev-Ari 2024-04-02 23:12:34 +03:00 committed by GitHub
parent 9c68c6c9f3
commit a5faddc56c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 233 additions and 261 deletions

View file

@ -1,5 +1,10 @@
import { ServiceType } from '@/react/kubernetes/applications/CreateView/application-services/types';
import { AppType, DeploymentType } from '@/react/kubernetes/applications/types';
import {
AppType,
DeploymentType,
AppDataAccessPolicy,
AppKind,
} from '@/react/kubernetes/applications/types';
import { ConfigurationVolume } from './ConfigurationVolume';
import { PersistedFolder } from './PersistedFolder';
@ -13,7 +18,7 @@ export class Application {
StackId: string;
ApplicationKind: string;
ApplicationKind?: AppKind;
ApplicationOwner: string;
@ -63,7 +68,7 @@ export class Application {
DeploymentType?: DeploymentType;
DataAccessPolicy: 'Unknown';
DataAccessPolicy?: AppDataAccessPolicy;
ApplicationType?: AppType;
@ -93,7 +98,6 @@ export class Application {
this.Name = '';
this.StackName = '';
this.StackId = '';
this.ApplicationKind = '';
this.ApplicationOwner = '';
this.ApplicationName = '';
this.ResourcePool = '';
@ -112,7 +116,6 @@ export class Application {
this.Env = [];
this.PersistedFolders = [];
this.ConfigurationVolumes = [];
this.DataAccessPolicy = 'Unknown';
this.RunningPodsCount = 0;
this.TotalPodsCount = 0;
this.Yaml = '';

View file

@ -1,9 +1,9 @@
export class ConfigurationVolume {
fileMountPath: string = '';
fileMountPath = '';
rootMountPath: string = '';
rootMountPath = '';
configurationKey: string = '';
configurationKey = '';
configurationName: string = '';
configurationName = '';
}

View file

@ -1,7 +1,7 @@
export class PersistedFolder {
MountPath: string = '';
MountPath = '';
persistentVolumeClaimName: string = '';
persistentVolumeClaimName = '';
HostPath: string = '';
HostPath = '';
}