mirror of https://github.com/portainer/portainer
fix(kube/app): show resource allocation (#5317)
parent
db16299aab
commit
89756b2e01
|
@ -5,30 +5,28 @@ import { KubernetesApplicationDataAccessPolicies, KubernetesApplicationDeploymen
|
||||||
* KubernetesApplicationFormValues Model
|
* KubernetesApplicationFormValues Model
|
||||||
*/
|
*/
|
||||||
export function KubernetesApplicationFormValues() {
|
export function KubernetesApplicationFormValues() {
|
||||||
return {
|
this.ApplicationType = undefined; // will only exist for formValues generated from Application (app edit situation;
|
||||||
ApplicationType: undefined, // will only exist for formValues generated from Application (app edit situation)
|
this.ResourcePool = {};
|
||||||
ResourcePool: {},
|
this.Name = '';
|
||||||
Name: '',
|
this.StackName = '';
|
||||||
StackName: '',
|
this.ApplicationOwner = '';
|
||||||
ApplicationOwner: '',
|
this.ImageModel = new PorImageRegistryModel();
|
||||||
ImageModel: new PorImageRegistryModel(),
|
this.Note = '';
|
||||||
Note: '',
|
this.MemoryLimit = 0;
|
||||||
MemoryLimit: 0,
|
this.CpuLimit = 0;
|
||||||
CpuLimit: 0,
|
this.DeploymentType = KubernetesApplicationDeploymentTypes.REPLICATED;
|
||||||
DeploymentType: KubernetesApplicationDeploymentTypes.REPLICATED,
|
this.ReplicaCount = 1;
|
||||||
ReplicaCount: 1,
|
this.AutoScaler = {};
|
||||||
AutoScaler: {},
|
this.Containers = [];
|
||||||
Containers: [],
|
this.EnvironmentVariables = []; // KubernetesApplicationEnvironmentVariableFormValue lis;
|
||||||
EnvironmentVariables: [], // KubernetesApplicationEnvironmentVariableFormValue list
|
this.DataAccessPolicy = KubernetesApplicationDataAccessPolicies.SHARED;
|
||||||
DataAccessPolicy: KubernetesApplicationDataAccessPolicies.SHARED,
|
this.PersistedFolders = []; // KubernetesApplicationPersistedFolderFormValue lis;
|
||||||
PersistedFolders: [], // KubernetesApplicationPersistedFolderFormValue list
|
this.Configurations = []; // KubernetesApplicationConfigurationFormValue lis;
|
||||||
Configurations: [], // KubernetesApplicationConfigurationFormValue list
|
this.PublishingType = KubernetesApplicationPublishingTypes.INTERNAL;
|
||||||
PublishingType: KubernetesApplicationPublishingTypes.INTERNAL,
|
this.PublishedPorts = []; // KubernetesApplicationPublishedPortFormValue lis;
|
||||||
PublishedPorts: [], // KubernetesApplicationPublishedPortFormValue list
|
this.PlacementType = KubernetesApplicationPlacementTypes.PREFERRED;
|
||||||
PlacementType: KubernetesApplicationPlacementTypes.PREFERRED,
|
this.Placements = []; // KubernetesApplicationPlacementFormValue lis;
|
||||||
Placements: [], // KubernetesApplicationPlacementFormValue list
|
this.OriginalIngresses = undefined;
|
||||||
OriginalIngresses: undefined,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const KubernetesApplicationConfigurationFormValueOverridenKeyTypes = Object.freeze({
|
export const KubernetesApplicationConfigurationFormValueOverridenKeyTypes = Object.freeze({
|
||||||
|
|
Loading…
Reference in New Issue