Skip to content

Commit 1e92b20

Browse files
committed
chore: fix test helm chart lint issues
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 8c6b568 commit 1e92b20

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

tests/charts/application/templates/hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# jscpd:ignore-start
22
---
33
{{- if .Values.autoscaling.enabled }}
4-
apiVersion: autoscaling/v2beta1
4+
apiVersion: autoscaling/v2
55
kind: HorizontalPodAutoscaler
66
metadata:
77
name: {{ include "test-application.fullname" . }}

tests/charts/umbrella-application/charts/app/templates/hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.autoscaling.enabled }}
2-
apiVersion: autoscaling/v2beta1
2+
apiVersion: autoscaling/v2
33
kind: HorizontalPodAutoscaler
44
metadata:
55
name: {{ include "app.fullname" . }}

tests/charts/umbrella-application/charts/app/templates/tests/test-connection.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ metadata:
1010
spec:
1111
automountServiceAccountToken: false
1212
securityContext:
13+
seccompProfile:
14+
type: RuntimeDefault
15+
readOnlyRootFilesystem: true
16+
runAsUser: 10001
17+
allowPrivilegeEscalation: false
18+
capabilities:
19+
drop:
20+
- NET_RAW
21+
- ALL
1322
containers:
1423
- name: wget
1524
image: busybox@sha256:9ae97d36d26566ff84e8893c64a6dc4fe8ca6d1144bf5b87b2b85a32def253c7
@@ -22,7 +31,7 @@ spec:
2231
- -O
2332
- /dev/null
2433
- -q
25-
- {{ include "app.fullname" . }}:{{ .Values.service.port }}
34+
- "{{ include "app.fullname" . }}:{{ .Values.service.port }}"
2635
initialDelaySeconds: 5
2736
periodSeconds: 5
2837
timeoutSeconds: 1
@@ -35,7 +44,7 @@ spec:
3544
- -O
3645
- /dev/null
3746
- -q
38-
- {{ include "app.fullname" . }}:{{ .Values.service.port }}
47+
- "{{ include "app.fullname" . }}:{{ .Values.service.port }}"
3948
initialDelaySeconds: 5
4049
periodSeconds: 5
4150
timeoutSeconds: 1

0 commit comments

Comments
 (0)