mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* feat(application): add horizontalpodautoscaler creation * feat(application): Add the ability to set the auto-scale policy of an application * feat(k8s/application): minor UI update * fix(application): set api version and prevent to use hpa with global deployment type * feat(settings): add a switch to enable features based on server metrics * feat(k8s/applications): minor UI update Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
23 lines
462 B
JavaScript
23 lines
462 B
JavaScript
/**
|
|
* KubernetesHorizontalPodAutoScaler Model
|
|
*/
|
|
const _KubernetesHorizontalPodAutoScaler = Object.freeze({
|
|
Id: '',
|
|
Namespace: '',
|
|
Name: '',
|
|
MinReplicas: 1,
|
|
MaxReplicas: 1,
|
|
TargetCPUUtilization: 0,
|
|
TargetEntity: {
|
|
ApiVersion: '',
|
|
Kind: '',
|
|
Name: '',
|
|
},
|
|
Yaml: '',
|
|
});
|
|
|
|
export class KubernetesHorizontalPodAutoScaler {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesHorizontalPodAutoScaler)));
|
|
}
|
|
}
|