Skip to content

Commit

Permalink
Add deployment custom annotations and update strategy (#4)
Browse files Browse the repository at this point in the history
* Add deployment custom annotations and update strategy

* Add deployment custom annotations and update strategy
  • Loading branch information
mihaelabalas84 authored Apr 10, 2024
1 parent 9c6bf0e commit 2e1dcda
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/temporal/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ entries:
temporal:
- apiVersion: v2
appVersion: 1.23.0
created: "2024-03-29T18:25:30.355544+02:00"
created: "2024-04-10T10:04:11.938608+03:00"
dependencies:
- condition: cassandra.enabled
name: cassandra
Expand All @@ -24,7 +24,7 @@ entries:
description: Temporal is a distributed, scalable, durable, and highly available
orchestration engine to execute asynchronous long-running business logic in
a scalable and resilient way.
digest: 5c2631389dc94dfd86666b146cec56206a6b8f14af759584c542cad6f6f0d8b3
digest: ad37213f82dccfbc314cd93006518a47c0873e92851651f579c1c1e180896601
home: https://temporal.io/
keywords:
- temporal
Expand All @@ -40,4 +40,4 @@ entries:
urls:
- https://fairmoney.github.io/temporal-helm-charts/temporal-0.36.0.tgz
version: 0.36.0
generated: "2024-03-29T18:25:30.347138+02:00"
generated: "2024-04-10T10:04:11.931196+03:00"
11 changes: 11 additions & 0 deletions charts/temporal/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,19 @@ metadata:
app.kubernetes.io/version: {{ $.Chart.AppVersion | replace "+" "_" }}
app.kubernetes.io/component: {{ $service }}
app.kubernetes.io/part-of: {{ $.Chart.Name }}
annotations:
{{- with $.Values.server.deploymentAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ default $.Values.server.replicaCount $serviceValues.replicaCount }}
strategy:
type: {{ $.Values.server.deploymentStrategy.type }}
{{- if eq $.Values.server.deploymentStrategy.type "RollingUpdate" }}
rollingUpdate:
maxSurge: {{ default "25%" $.Values.server.deploymentStrategy.maxSurge }}
maxUnavailable: {{ default "25%" $.Values.server.deploymentStrategy.maxUnavailable }}
{{- end }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "temporal.name" $ }}
Expand Down
Binary file modified charts/temporal/temporal-0.36.0.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions charts/temporal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ server:

# Global default settings (can be overridden per service)
replicaCount: 1
deploymentStrategy:
type: RollingUpdate
metrics:
# Annotate pods directly with Prometheus annotations.
# Use this if you installed Prometheus from a Helm chart.
Expand Down

0 comments on commit 2e1dcda

Please sign in to comment.