Skip to content

Commit

Permalink
Merge pull request #170 from Test-Automation-Engineer/feature/ON-beha…
Browse files Browse the repository at this point in the history
…vior-for-hpa

Add autoscaling behavior for ON
  • Loading branch information
SilviaAmAm authored Jan 23, 2025
2 parents b91535e + a968037 commit 145dfa1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions charts/opennotificaties/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.8.0-beta.1 (2025-23-01)
- [#170] Add autoscaling behavior for ON

## 1.8.0-beta.0 (2025-22-01)
- [#169] Add pdb for worker

Expand Down
2 changes: 1 addition & 1 deletion charts/opennotificaties/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: opennotificaties
description: API voor het routeren van notificaties

type: application
version: 1.8.0-beta.0
version: 1.8.0-beta.1
appVersion: latest

dependencies:
Expand Down
4 changes: 3 additions & 1 deletion charts/opennotificaties/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# opennotificaties

![Version: 1.7.0-beta.0](https://img.shields.io/badge/Version-1.7.0--beta.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 1.8.0-beta.1](https://img.shields.io/badge/Version-1.8.0--beta.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)

API voor het routeren van notificaties

Expand All @@ -16,6 +16,7 @@ API voor het routeren van notificaties
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| autoscaling.behavior | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
Expand Down Expand Up @@ -203,6 +204,7 @@ API voor het routeren van notificaties
| tags.rabbitmq | bool | `true` | |
| tags.redis | bool | `true` | |
| tolerations | list | `[]` | |
| worker.autoscaling.behavior | object | `{}` | |
| worker.autoscaling.enabled | bool | `false` | |
| worker.autoscaling.maxReplicas | int | `100` | |
| worker.autoscaling.minReplicas | int | `1` | |
Expand Down
8 changes: 8 additions & 0 deletions charts/opennotificaties/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- with .Values.autoscaling.behavior }}
behavior:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
---
{{- if .Values.worker.autoscaling.enabled }}
Expand Down Expand Up @@ -62,4 +66,8 @@ spec:
type: Utilization
averageUtilization: {{ .Values.worker.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- with .Values.worker.autoscaling.behavior }}
behavior:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/opennotificaties/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ autoscaling:
maxReplicas: 100
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
behavior: {}

pdb:
create: false
Expand Down Expand Up @@ -353,6 +354,8 @@ worker:
maxReplicas: 100
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
behavior: {}

pdb:
create: false
minAvailable: 1
Expand Down

0 comments on commit 145dfa1

Please sign in to comment.