mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
feat(kubernetes/summary): summary of k8s actions upon deploying/updating resources EE-436 (#5137)
* feat EE-440/EE-436 kubernetes-resources-summary-panel * bugfix: returning created resources after update * fixed patch based bugs - displaying accurate updates for k8s resources Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
267968e099
commit
eae2f5c9fc
16 changed files with 539 additions and 7 deletions
|
@ -1,11 +1,9 @@
|
|||
export function KubernetesResourcePoolFormValues(defaults) {
|
||||
return {
|
||||
Name: '',
|
||||
MemoryLimit: defaults.MemoryLimit,
|
||||
CpuLimit: defaults.CpuLimit,
|
||||
HasQuota: false,
|
||||
IngressClasses: [], // KubernetesResourcePoolIngressClassFormValue
|
||||
};
|
||||
this.Name = '';
|
||||
this.MemoryLimit = defaults.MemoryLimit;
|
||||
this.CpuLimit = defaults.CpuLimit;
|
||||
this.HasQuota = false;
|
||||
this.IngressClasses = []; // KubernetesResourcePoolIngressClassFormValue
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
19
app/kubernetes/models/resource-types/models.js
Normal file
19
app/kubernetes/models/resource-types/models.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
export const KubernetesResourceTypes = Object.freeze({
|
||||
NAMESPACE: 'Namespace',
|
||||
RESOURCEQUOTA: 'ResourceQuota',
|
||||
CONFIGMAP: 'ConfigMap',
|
||||
SECRET: 'Secret',
|
||||
DEPLOYMENT: 'Deployment',
|
||||
STATEFULSET: 'StatefulSet',
|
||||
DAEMONSET: 'Daemonset',
|
||||
PERSISTENT_VOLUME_CLAIM: 'PersistentVolumeClaim',
|
||||
SERVICE: 'Service',
|
||||
INGRESS: 'Ingress',
|
||||
HORIZONTAL_POD_AUTOSCALER: 'HorizontalPodAutoscaler',
|
||||
});
|
||||
|
||||
export const KubernetesResourceActions = Object.freeze({
|
||||
CREATE: 'Create',
|
||||
UPDATE: 'Update',
|
||||
DELETE: 'Delete',
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue