Skip to content

Commit

Permalink
Temporary fix for chart
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-p committed May 8, 2023
1 parent 192d75c commit 637e29d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
2 changes: 0 additions & 2 deletions charts/gks-template/templates/_deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "gks.shared.selectorLabels" . | nindent 6 }}
Expand Down
26 changes: 0 additions & 26 deletions charts/gks-template/templates/_hpa.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,5 @@
*/ -}}
{{- define "gks.shared.hpa" -}}
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "gks.shared.fullname" . }}
labels:
{{- include "gks.shared.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "gks.shared.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 637e29d

Please sign in to comment.