Skip to content

Commit

Permalink
Fixed hpa spec of services (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsgrigorov authored Oct 7, 2023
1 parent 28d2c49 commit 3d97a37
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 27 deletions.
8 changes: 4 additions & 4 deletions charts/agents/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ dependencies:
version: 9.3.2
- name: omnirpc
repository: file://../omnirpc/
version: 0.2.8
version: 0.2.9
- name: scribe
repository: file://../scribe/
version: 0.2.13
version: 0.2.14
- name: jaeger
repository: https://jaegertracing.github.io/helm-charts
version: 0.69.1
digest: sha256:eef6d5dc7a9673c3b5150ddf49ca4de2be5657811d7f747cc97a340c595f357f
generated: "2023-10-05T17:52:35.850465-07:00"
digest: sha256:f1c664b6e52c04911d6915e92341991ea2ad0e11235b4ccd72ea0ddb63284f55
generated: "2023-10-06T17:12:41.202122-07:00"
6 changes: 3 additions & 3 deletions charts/agents/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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: 0.1.27
version: 0.1.28

# 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
Expand All @@ -29,11 +29,11 @@ dependencies:
repository: "https://charts.bitnami.com/bitnami"
condition: mysql.enabled
- name: omnirpc
version: "0.2.8"
version: "0.2.9"
repository: "file://../omnirpc/"
condition: omnirpc.enabled
- name: scribe
version: "0.2.13"
version: "0.2.14"
repository: "file://../scribe/"
condition: scribe.enabled
- name: jaeger
Expand Down
2 changes: 1 addition & 1 deletion charts/cctp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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: 0.2.1
version: 0.2.2

# 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
Expand Down
8 changes: 6 additions & 2 deletions charts/cctp/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,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 }}
6 changes: 3 additions & 3 deletions charts/explorer/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: omnirpc
repository: file://../omnirpc/
version: 0.2.8
version: 0.2.9
- name: clickhouse
repository: https://sentry-kubernetes.github.io/charts
version: 3.1.3
digest: sha256:eadd49d152a154074db2f1fe8280a468afb499776b613e89f56a1cbc1533b424
generated: "2023-10-05T17:53:10.926443-07:00"
digest: sha256:c0948876356a232aae14d7835389505acacf60a6c78796b04a156502600684df
generated: "2023-10-06T17:11:59.552604-07:00"
4 changes: 2 additions & 2 deletions charts/explorer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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: 0.2.13
version: 0.2.14

# 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
Expand All @@ -25,7 +25,7 @@ appVersion: "1.16.0"

dependencies:
- name: omnirpc
version: "0.2.8"
version: "0.2.9"
repository: "file://../omnirpc/"
condition: omnirpc.enabled
- name: clickhouse
Expand Down
8 changes: 6 additions & 2 deletions charts/explorer/templates/server_hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.server.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.server.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/omnirpc/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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: 0.2.8
version: 0.2.9

# 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
Expand Down
8 changes: 6 additions & 2 deletions charts/omnirpc/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,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 }}
6 changes: 3 additions & 3 deletions charts/scribe/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ dependencies:
version: 9.3.2
- name: omnirpc
repository: file://../omnirpc/
version: 0.2.8
digest: sha256:c774c50f46900f4442e0ec3022689181be431e7018a7cdc25903129c0977fb5a
generated: "2023-10-05T17:53:22.515087-07:00"
version: 0.2.9
digest: sha256:1b33f97f09cf2f3c56f95a6a466dfa00b09f41bcf57939864b75b29a053c49dc
generated: "2023-10-06T17:12:14.904732-07:00"
4 changes: 2 additions & 2 deletions charts/scribe/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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: 0.2.13
version: 0.2.14

# 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
Expand All @@ -29,6 +29,6 @@ dependencies:
repository: "https://charts.bitnami.com/bitnami"
condition: mysql.enabled
- name: omnirpc
version: "0.2.8"
version: "0.2.9"
repository: "file://../omnirpc/"
condition: omnirpc.enabled
8 changes: 6 additions & 2 deletions charts/scribe/templates/server_hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ .Values.server.autoscaling.targetCPUUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.server.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
target:
type: Utilization
averageUtilization: {{ .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 3d97a37

Please sign in to comment.