Skip to content

Commit 7b4140d

Browse files
the-simmonWeltraumschaf
authored andcommitted
Fix megalint autofix changes
Signed-off-by: Simon Hülkenberg <simon.huelkenberg@iteratec.com>
1 parent b23b730 commit 7b4140d

12 files changed

Lines changed: 58 additions & 30 deletions

File tree

demo-targets/bodgeit/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "bodgeit.fullname" .}}
9-
labels: {{- include "bodgeit.labels" . | nindent 4}}
10-
annotations: {{- include "bodgeit.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "bodgeit.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "bodgeit.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: http
1618
protocol: TCP
1719
name: http
18-
selector: {{- include "bodgeit.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "bodgeit.selectorLabels" . | nindent 4}}

demo-targets/dummy-ssh/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "dummy-ssh.fullname" .}}
9-
labels: {{- include "dummy-ssh.labels" . | nindent 4}}
10-
annotations: {{- include "dummy-ssh.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "dummy-ssh.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "dummy-ssh.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: ssh
1618
protocol: TCP
1719
name: ssh
18-
selector: {{- include "dummy-ssh.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "dummy-ssh.selectorLabels" . | nindent 4}}

demo-targets/http-webhook/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "http-webhook.fullname" .}}
9-
labels: {{- include "http-webhook.labels" . | nindent 4}}
10-
annotations: {{- include "http-webhook.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "http-webhook.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "http-webhook.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: http
1618
protocol: TCP
1719
name: http
18-
selector: {{- include "http-webhook.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "http-webhook.selectorLabels" . | nindent 4}}

demo-targets/juice-shop/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "juice-shop.fullname" .}}
9-
labels: {{- include "juice-shop.labels" . | nindent 4}}
10-
annotations: {{- include "juice-shop.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "juice-shop.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "juice-shop.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: http
1618
protocol: TCP
1719
name: http
18-
selector: {{- include "juice-shop.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "juice-shop.selectorLabels" . | nindent 4}}

demo-targets/old-joomla/templates/service.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{include "old-joomla.fullname" .}}
5-
labels: {{- include "old-joomla.labels" . | nindent 4}}
5+
labels:
6+
{{- include "old-joomla.labels" . | nindent 4}}
67
spec:
78
type: {{.Values.service.type}}
89
ports:
910
- port: {{.Values.service.port}}
1011
targetPort: http
1112
protocol: TCP
1213
name: http
13-
selector: {{- include "old-joomla.selectorLabels" . | nindent 4}}
14+
selector:
15+
{{- include "old-joomla.selectorLabels" . | nindent 4}}

demo-targets/old-typo3/templates/service.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{include "old-typo3.fullname" .}}
5-
labels: {{- include "old-typo3.labels" . | nindent 4}}
5+
labels:
6+
{{- include "old-typo3.labels" . | nindent 4}}
67
spec:
78
type: {{.Values.service.type}}
89
ports:
910
- port: {{.Values.service.port}}
1011
targetPort: http
1112
protocol: TCP
1213
name: http
13-
selector: {{- include "old-typo3.selectorLabels" . | nindent 4}}
14+
selector:
15+
{{- include "old-typo3.selectorLabels" . | nindent 4}}

demo-targets/old-wordpress/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "old-wordpress.fullname" .}}
9-
labels: {{- include "old-wordpress.labels" . | nindent 4}}
10-
annotations: {{- include "old-wordpress.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "old-wordpress.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "old-wordpress.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: http
1618
protocol: TCP
1719
name: http
18-
selector: {{- include "old-wordpress.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "old-wordpress.selectorLabels" . | nindent 4}}

demo-targets/swagger-petstore/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "swagger-petstore.fullname" .}}
9-
labels: {{- include "swagger-petstore.labels" . | nindent 4}}
10-
annotations: {{- include "swagger-petstore.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "swagger-petstore.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "swagger-petstore.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: http
1618
protocol: TCP
1719
name: http
18-
selector: {{- include "swagger-petstore.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "swagger-petstore.selectorLabels" . | nindent 4}}

demo-targets/unsafe-https/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "unsafe-https.fullname" .}}
9-
labels: {{- include "unsafe-https.labels" . | nindent 4}}
10-
annotations: {{- include "unsafe-https.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "unsafe-https.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "unsafe-https.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: https
1618
protocol: TCP
1719
name: https
18-
selector: {{- include "unsafe-https.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "unsafe-https.selectorLabels" . | nindent 4}}

demo-targets/vulnerable-log4j/templates/service.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: {{include "vulnerable-log4j.fullname" .}}
9-
labels: {{- include "vulnerable-log4j.labels" . | nindent 4}}
10-
annotations: {{- include "vulnerable-log4j.annotations" . | nindent 4}}
9+
labels:
10+
{{- include "vulnerable-log4j.labels" . | nindent 4}}
11+
annotations:
12+
{{- include "vulnerable-log4j.annotations" . | nindent 4}}
1113
spec:
1214
type: {{.Values.service.type}}
1315
ports:
1416
- port: {{.Values.service.port}}
1517
targetPort: http
1618
protocol: TCP
1719
name: http
18-
selector: {{- include "vulnerable-log4j.selectorLabels" . | nindent 4}}
20+
selector:
21+
{{- include "vulnerable-log4j.selectorLabels" . | nindent 4}}

0 commit comments

Comments
 (0)