Skip to content

Commit

Permalink
feat: Add capacity reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
Balsir committed Mar 6, 2024
1 parent c810de9 commit 2e2a67e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/capacity-reservation/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.1
version: 0.1.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
2 changes: 1 addition & 1 deletion charts/capacity-reservation/templates/cronjob-down.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
command:
- /bin/sh
- -c
- kubectl scale --replicas={{ .Values.schedule.down.replicas }} deployment/{{ include "capacity-reservation.fullname" . }}-reservation
- kubectl scale --replicas={{ .Values.schedule.down.reservation.replicas }} deployment/{{ include "capacity-reservation.fullname" . }}-reservation
resources:
{{- toYaml .Values.schedule.down.resources | nindent 14 }}
restartPolicy: OnFailure
Expand Down
2 changes: 1 addition & 1 deletion charts/capacity-reservation/templates/cronjob-up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
command:
- /bin/sh
- -c
- kubectl scale --replicas={{ .Values.schedule.up.replicas }} deployment/{{ include "capacity-reservation.fullname" . }}-reservation
- kubectl scale --replicas={{ .Values.schedule.up.reservation.replicas }} deployment/{{ include "capacity-reservation.fullname" . }}-reservation
resources:
{{- toYaml .Values.schedule.up.resources | nindent 14 }}
restartPolicy: OnFailure
Expand Down

0 comments on commit 2e2a67e

Please sign in to comment.