mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(kube/cluster): migrate node apps table to react [EE-4691] (#11016)
This commit is contained in:
parent
9c68c6c9f3
commit
a5faddc56c
19 changed files with 233 additions and 261 deletions
|
@ -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 = '';
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
export class ConfigurationVolume {
|
||||
fileMountPath: string = '';
|
||||
fileMountPath = '';
|
||||
|
||||
rootMountPath: string = '';
|
||||
rootMountPath = '';
|
||||
|
||||
configurationKey: string = '';
|
||||
configurationKey = '';
|
||||
|
||||
configurationName: string = '';
|
||||
configurationName = '';
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export class PersistedFolder {
|
||||
MountPath: string = '';
|
||||
MountPath = '';
|
||||
|
||||
persistentVolumeClaimName: string = '';
|
||||
persistentVolumeClaimName = '';
|
||||
|
||||
HostPath: string = '';
|
||||
HostPath = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue