Skip to content

Commit 14e85a9

Browse files
add the ability to set update strategy (#44)
1 parent ea878a8 commit 14e85a9

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

charts/localstack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ annotations:
22
category: Infrastructure
33
apiVersion: v2
44
appVersion: latest
5-
version: 0.3.6
5+
version: 0.3.7
66
name: localstack
77
description: LocalStack - a fully functional local AWS cloud stack
88
type: application

charts/localstack/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ The following table lists the configurable parameters of the Localstack chart an
7878
| Parameter | Description | Default |
7979
|------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
8080
| `replicaCount` | Number of Localstack pods | `1` |
81+
| `updateStrategy.type` | Update strategy type | `RollingUpdate` |
8182
| `nodeSelector` | Node labels for pod assignment | `{}` |
8283
| `tolerations` | Tolerations for pod assignment | `[]` |
8384
| `tolerations` | Tolerations for pod assignment | `[]` |
@@ -136,6 +137,7 @@ When raising a pull request with a fix or new feature, please make sure to:
136137

137138
## Change Log
138139

140+
* v0.3.7: Add the ability to set update strategy
139141
* v0.3.6: Add the ability to deploy extra objects
140142
* v0.3.5: Add namespace variable to metadata of resources, fix enableStartupScripts check to properly mount the config map volume
141143
* v0.3.4: Fix volume mounts exclusion and tests

charts/localstack/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
{{- include "localstack.labels" . | nindent 4 }}
88
spec:
99
replicas: {{ .Values.replicaCount }}
10+
strategy: {{- include "common.tplvalues.render" (dict "value" .Values.updateStrategy "context" $ ) | nindent 4 }}
1011
selector:
1112
matchLabels:
1213
{{- include "localstack.selectorLabels" . | nindent 6 }}

charts/localstack/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33

44
replicaCount: 1
55

6+
## @param updateStrategy.type deployment strategy type
7+
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
8+
## NOTE: Set it to `Recreate` if you use a PV that cannot be mounted on multiple pods
9+
##
10+
updateStrategy:
11+
type: RollingUpdate
12+
613
image:
714
repository: localstack/localstack
815
tag: "latest"

0 commit comments

Comments
 (0)