Skip to content

Commit

Permalink
Update from Tricentis-qTest/qtest-chart
Browse files Browse the repository at this point in the history
  • Loading branch information
byangtri committed Nov 8, 2023
1 parent 2332e22 commit d96bd3e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Charts/qtest-session/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ kubeVersion: ">=1.18.0-0"
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.1.10
version: 1.1.11
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "2023.5"
appVersion: 2023.5
22 changes: 15 additions & 7 deletions Charts/qtest-session/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.autoscaling.enabled }}
{{- if .Values.rollouts.enabled -}}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "qtest-session.fullname" . }}
Expand All @@ -19,16 +19,21 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- else }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "qtest-session.fullname" . }}
Expand All @@ -47,13 +52,16 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions Charts/qtest-session/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ kind: Service
metadata:
name: {{ .Values.service.serviceName }}-canary
namespace: {{ .Values.namespace.name }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app: qtest-session
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down

0 comments on commit d96bd3e

Please sign in to comment.