mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
Merge branch 'develop' into feat/EE-809/EE-466/kube-advanced-apps
This commit is contained in:
commit
0979e6ec8f
97 changed files with 1155 additions and 314 deletions
|
@ -1,11 +1,15 @@
|
|||
export function KubernetesNamespace() {
|
||||
return {
|
||||
Id: '',
|
||||
Name: '',
|
||||
CreationDate: '',
|
||||
Status: '',
|
||||
Yaml: '',
|
||||
ResourcePoolName: '',
|
||||
ResourcePoolOwner: '',
|
||||
};
|
||||
export class KubernetesNamespace {
|
||||
constructor() {
|
||||
this.Id = '';
|
||||
this.Name = '';
|
||||
this.CreationDate = '';
|
||||
this.Status = '';
|
||||
this.Yaml = '';
|
||||
this.ResourcePoolName = '';
|
||||
this.ResourcePoolOwner = '';
|
||||
this.IsSystem = false;
|
||||
}
|
||||
}
|
||||
|
||||
export const KUBERNETES_DEFAULT_SYSTEM_NAMESPACES = ['kube-system', 'kube-public', 'kube-node-lease', 'portainer'];
|
||||
export const KUBERNETES_DEFAULT_NAMESPACE = 'default';
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
export function KubernetesResourcePoolFormValues(defaults) {
|
||||
return {
|
||||
Name: '',
|
||||
MemoryLimit: defaults.MemoryLimit,
|
||||
CpuLimit: defaults.CpuLimit,
|
||||
HasQuota: false,
|
||||
IngressClasses: [], // KubernetesResourcePoolIngressClassFormValue
|
||||
Registries: [], // RegistryViewModel
|
||||
EndpointId: 0,
|
||||
};
|
||||
this.Name = '';
|
||||
this.MemoryLimit = defaults.MemoryLimit;
|
||||
this.CpuLimit = defaults.CpuLimit;
|
||||
this.HasQuota = false;
|
||||
this.IngressClasses = []; // KubernetesResourcePoolIngressClassFormValue
|
||||
this.Registries = []; // RegistryViewModel
|
||||
this.EndpointId = 0;
|
||||
this.IsSystem = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,8 @@ export const KubernetesPortainerResourcePoolNameLabel = 'io.portainer.kubernetes
|
|||
|
||||
export const KubernetesPortainerResourcePoolOwnerLabel = 'io.portainer.kubernetes.resourcepool.owner';
|
||||
|
||||
export const KubernetesPortainerNamespaceSystemLabel = 'io.portainer.kubernetes.namespace.system';
|
||||
|
||||
/**
|
||||
* KubernetesResourcePool Model
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue