portainer/portainer

View on GitHub
app/kubernetes/horizontal-pod-auto-scaler/models.js

Summary

Maintainability
A
30 mins
Test Coverage
/**
 * KubernetesHorizontalPodAutoScaler Model
 */
const _KubernetesHorizontalPodAutoScaler = Object.freeze({
  Id: '',
  Namespace: '',
  Name: '',
  MinReplicas: 1,
  MaxReplicas: 1,
  targetCpuUtilizationPercentage: 0,
  TargetEntity: {
    ApiVersion: '',
    Kind: '',
    Name: '',
  },
  Yaml: '',
});

export class KubernetesHorizontalPodAutoScaler {
  constructor() {
    Object.assign(this, JSON.parse(JSON.stringify(_KubernetesHorizontalPodAutoScaler)));
  }
}