Skip to content

Commit d01ed71

Browse files
authored
chore(localstack): add extraLabels option and align documentation (#128)
1 parent 22d3f64 commit d01ed71

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

charts/localstack/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,12 @@ The following table lists the configurable parameters of the Localstack chart an
9292
| `image.tag` | Localstack image tag | `latest` |
9393
| `image.pullPolicy` | Localstack image pull policy | `IfNotPresent` |
9494
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
95-
| `podLabels` | Additional pod labels for Localstack secondary pods | `{}` |
95+
| `podLabels` | Additional pod labels for Localstack secondary pods | `{}` |
9696
| `podAnnotations` | Additional pod annotations for Localstack secondary pods | `{}` |
9797
| `podSecurityContext` | Enable security context for Localstack pods | `{}` |
98+
| `extraDeploy` | Extra objects to deploy (value evaluated as a template) | `{}` |
99+
| `extraAnnotations` | Add additional annotations to every resource (value evaluated as a template) | `{}` |
100+
| `extraLabels` | Add additional labels to every resource (value evaluated as a template) | `{}` |
98101
| `securityContext` | Localstack container securityContext | `{}` |
99102

100103
### Localstack parameters
@@ -103,11 +106,11 @@ The following table lists the configurable parameters of the Localstack chart an
103106
|------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
104107
| `debug` | Specify if debug logs should be enabled | `false` |
105108
| `kinesisErrorProbability` | Specify to randomly inject ProvisionedThroughputExceededException errors into Kinesis API responses | `nil` (Localstack Default) |
106-
| `startServices` | Comma-separated list of AWS CLI service names which should be loaded right when starting LocalStack. If not set, each service is loaded and started on the first request for that service. | `nil` (Localstack Default) |
109+
| `startServices` | Comma-separated list of AWS CLI service names which should be loaded right when starting LocalStack. If not set, each service is loaded and started on the first request for that service. | `nil` (Localstack Default) |
107110
| `lambdaExecutor` | Specify Method to use for executing Lambda functions (partially supported) | `docker` |
108111
| `extraEnvVars` | Extra environment variables to be set on Localstack primary containers | `nil` (Localstack Default) |
109112
| `enableStartupScripts` | Mount `/etc/localstack/init/ready.d` to run startup scripts with `{{ template "localstack.fullname" . }}-init-scripts-config` configMap | `false` |
110-
| `startupScriptContent` | Startup script content when `enableStartupScripts` is `true`. Note: You will need to add a shebang as your first line such as `!#/bin/sh` in order to ensure the startup script is not malformed. | `nil` (Localstack Default) |
113+
| `startupScriptContent` | Startup script content when `enableStartupScripts` is `true`. Note: You will need to add a shebang as your first line such as `!#/bin/sh` in order to ensure the startup script is not malformed. | `nil` (Localstack Default) |
111114

112115
### Deployment parameters
113116

charts/localstack/templates/_helpers.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ helm.sh/chart: {{ include "localstack.chart" . }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
4242
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- with .Values.extraLabels }}
44+
{{- range $label, $value := index . }}
45+
{{ $label }}: {{ tpl $value $ | quote }}
46+
{{- end }}
47+
{{- end }}
4348
{{- end }}
4449

4550
{{/*

charts/localstack/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ fullnameOverride: ""
2323
##
2424
extraDeploy: []
2525

26-
## Add additional annotations to every resource
26+
## @param extraAnnotations Add additional annotations to every resource (value evaluated as a template)
2727
extraAnnotations: {}
2828

29+
## @param extraLabels Add additional labels to every resource (value evaluated as a template)
30+
extraLabels: {}
31+
2932
serviceAccount:
3033
# Specifies whether a service account should be created
3134
create: true

0 commit comments

Comments
 (0)