Skip to content

Commit 8361da6

Browse files
github-actions[bot]neilime
authored andcommitted
chore: fix test helm chart lint issues
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent fd900ab commit 8361da6

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,6 +1,6 @@
11
---
22
{{- if .Values.autoscaling.enabled }}
3-
apiVersion: autoscaling/v2beta1
3+
apiVersion: autoscaling/v2
44
kind: HorizontalPodAutoscaler
55
metadata:
66
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
@@ -11,6 +11,15 @@ metadata:
1111
spec:
1212
automountServiceAccountToken: false
1313
securityContext:
14+
seccompProfile:
15+
type: RuntimeDefault
16+
readOnlyRootFilesystem: true
17+
runAsUser: 10001
18+
allowPrivilegeEscalation: false
19+
capabilities:
20+
drop:
21+
- NET_RAW
22+
- ALL
1423
containers:
1524
- name: wget
1625
image: busybox@sha256:9ae97d36d26566ff84e8893c64a6dc4fe8ca6d1144bf5b87b2b85a32def253c7
@@ -23,7 +32,7 @@ spec:
2332
- -O
2433
- /dev/null
2534
- -q
26-
- {{ include "app.fullname" . }}:{{ .Values.service.port }}
35+
- "{{ include "app.fullname" . }}:{{ .Values.service.port }}"
2736
initialDelaySeconds: 5
2837
periodSeconds: 5
2938
timeoutSeconds: 1
@@ -36,7 +45,7 @@ spec:
3645
- -O
3746
- /dev/null
3847
- -q
39-
- {{ include "app.fullname" . }}:{{ .Values.service.port }}
48+
- "{{ include "app.fullname" . }}:{{ .Values.service.port }}"
4049
initialDelaySeconds: 5
4150
periodSeconds: 5
4251
timeoutSeconds: 1

0 commit comments

Comments
 (0)