Skip to content

Commit 176f009

Browse files
committed
fix: extraLabels in helm chart not working
1 parent 9613de6 commit 176f009

File tree

4 files changed

+61
-2
lines changed

4 files changed

+61
-2
lines changed

charts/steadybit-extension-http/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: steadybit-extension-http
33
description: Steadybit action implementation to check HTTP endpoints.
4-
version: 1.0.10
4+
version: 1.0.11
55
appVersion: latest
66
home: https://www.steadybit.com/
77
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png

charts/steadybit-extension-http/templates/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
{{- range $key, $value := .Values.extraLabels }}
88
{{ $key }}: {{ $value }}
99
{{- end }}
10-
{{- include "extensionlib.labels" (list .) | nindent 6 }}
10+
{{- include "extensionlib.labels" (list .) | nindent 4 }}
1111
spec:
1212
replicas: 1
1313
selector:

charts/steadybit-extension-http/tests/__snapshot__/deployment_test.yaml.snap

+53
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,59 @@ manifest should match snapshot with extra env vars:
174174
runAsUser: 10000
175175
volumeMounts: null
176176
volumes: null
177+
manifest should match snapshot with extra labels:
178+
1: |
179+
apiVersion: apps/v1
180+
kind: Deployment
181+
metadata:
182+
labels:
183+
steadybit.com/discovery-disabled: "true"
184+
tags.datadoghq.com/service: steadybit-extension
185+
name: RELEASE-NAME-steadybit-extension-http
186+
namespace: NAMESPACE
187+
spec:
188+
replicas: 1
189+
selector:
190+
matchLabels:
191+
app.kubernetes.io/name: steadybit-extension-http
192+
template:
193+
metadata:
194+
annotations: null
195+
labels:
196+
app.kubernetes.io/name: steadybit-extension-http
197+
steadybit.com/discovery-disabled: "true"
198+
spec:
199+
containers:
200+
- env:
201+
- name: STEADYBIT_LOG_LEVEL
202+
value: INFO
203+
- name: STEADYBIT_LOG_FORMAT
204+
value: text
205+
image: ghcr.io/steadybit/extension-http:latest
206+
imagePullPolicy: Always
207+
livenessProbe:
208+
httpGet:
209+
path: /health/liveness
210+
port: 8081
211+
name: extension
212+
readinessProbe:
213+
httpGet:
214+
path: /health/readiness
215+
port: 8081
216+
resources:
217+
limits:
218+
cpu: 200m
219+
memory: 128Mi
220+
requests:
221+
cpu: 50m
222+
memory: 64Mi
223+
securityContext:
224+
readOnlyRootFilesystem: true
225+
runAsGroup: 10000
226+
runAsNonRoot: true
227+
runAsUser: 10000
228+
volumeMounts: null
229+
volumes: null
177230
manifest should match snapshot with mutual TLS:
178231
1: |
179232
apiVersion: apps/v1

charts/steadybit-extension-http/tests/deployment_test.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ tests:
6060
name: env-secrets
6161
asserts:
6262
- matchSnapshot: {}
63+
- it: manifest should match snapshot with extra labels
64+
set:
65+
extraLabels:
66+
tags.datadoghq.com/service: steadybit-extension
67+
asserts:
68+
- matchSnapshot: {}

0 commit comments

Comments
 (0)