Skip to content

Commit 02b7722

Browse files
committed
removed \n characters
1 parent 140c365 commit 02b7722

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

pkg-new/preflights/host-preflight.yaml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ spec:
243243
}
244244
}
245245
' \
246-
| sort -u
246+
| sort -u \
247+
| paste -sd ', ' -
247248
- systemPackages:
248249
collectorName: security-tools-packages
249250
ubuntu:
@@ -262,13 +263,13 @@ spec:
262263
- |
263264
pkgs="sdcss-kmod sdcss sdcss-scripts"
264265
if command -v dpkg >/dev/null 2>&1; then
265-
for p in $pkgs; do
266-
dpkg -l "$p" >/dev/null 2>&1 && printf '%s\n' "$p"
267-
done
266+
{ for p in $pkgs; do
267+
dpkg -l "$p" >/dev/null 2>&1 && printf '%s\n' "$p";
268+
done; } | paste -sd ', ' -
268269
elif command -v rpm >/dev/null 2>&1; then
269-
for p in $pkgs; do
270-
rpm -q "$p" >/dev/null 2>&1 && printf '%s\n' "$p"
271-
done
270+
{ for p in $pkgs; do
271+
rpm -q "$p" >/dev/null 2>&1 && printf '%s\n' "$p";
272+
done; } | paste -sd ', ' -
272273
fi
273274
analyzers:
274275
- cpu:
@@ -1367,11 +1368,7 @@ spec:
13671368
when: "Detected == ''"
13681369
message: "No antivirus or network security tools detected."
13691370
- warn:
1370-
message: |-
1371-
The following antivirus or network security tools were detected:
1372-
{{ "{{" }} .Detected {{ "}}" }}
1373-
1374-
These types of tools have been known to interfere with Kubernetes operation in various ways. If you experience an installation problem, you may need to disable these tools temporarily as part of the troubleshooting process to identify if any system administrator exceptions may be required to maintain necessary internal Kubernetes operations.
1371+
message: "The following antivirus or network security tools were detected: {{ \"{{\" }} .Detected {{ \"}}\" }}. These types of tools have been known to interfere with Kubernetes operation in various ways. If you experience an installation problem, you may need to disable these tools temporarily as part of the troubleshooting process to identify if any system administrator exceptions may be required to maintain necessary internal Kubernetes operations."
13751372
- textAnalyze:
13761373
checkName: "Detected Security Packages"
13771374
fileName: host-collectors/run-host/security-tools-installed.txt
@@ -1382,8 +1379,4 @@ spec:
13821379
when: "Installed == ''"
13831380
message: "No security packages detected."
13841381
- warn:
1385-
message: |-
1386-
The following security packages were detected:
1387-
{{ "{{" }} .Installed {{ "}}" }}
1388-
1389-
These packages can interfere with Kubernetes operation. Ensure they are disabled or configured to not interfere with required Kubernetes traffic and processes.
1382+
message: "The following security packages were detected: {{ \"{{\" }} .Installed {{ \"}}\" }}. These packages can interfere with Kubernetes operation. Ensure they are disabled or configured to not interfere with required Kubernetes traffic and processes."

0 commit comments

Comments
 (0)