Skip to content

Commit

Permalink
Merge pull request #285 from wunderio/feature/release-20220519
Browse files Browse the repository at this point in the history
Conditional HPA
  • Loading branch information
agnis-mateuss authored May 19, 2022
2 parents b1dedd8 + b272916 commit c3b3a3b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drupal/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: drupal
version: 0.3.122
version: 0.3.123
dependencies:
- name: mariadb
version: 7.5.x
Expand Down
2 changes: 2 additions & 0 deletions drupal/templates/drupal-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ metadata:
labels:
{{- include "drupal.release_labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicas }}
{{- end }}
selector:
matchLabels:
{{- include "drupal.release_selector_labels" . | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: frontend
version: 0.2.67
version: 0.2.68
dependencies:
- name: mariadb
version: 7.10.x
Expand Down
2 changes: 2 additions & 0 deletions frontend/templates/services-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ metadata:
labels:
{{ include "frontend.release_labels" $ | indent 4 }}
spec:
{{- if or (not $service.autoscaling) (not (($service.autoscaling).enabled)) }}
replicas: {{ default 1 $service.replicas }}
{{- end }}
strategy:
{{ default $.Values.serviceDefaults.strategy $service.strategy | toYaml }}
selector:
Expand Down

0 comments on commit c3b3a3b

Please sign in to comment.