Skip to content

Commit 87c1b5f

Browse files
chore: capture and analyse ipv4 interfaces (#579)
gather and analyses the amount of network interfaces with ipv4. generates an error if no ipv4 interfaces are found.
1 parent 7e53154 commit 87c1b5f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/goods/support/host-support-bundle.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
spec:
66
uri: https://raw.githubusercontent.com/replicatedhq/embedded-cluster/main/pkg/goods/support/host-support-bundle.yaml
77
hostCollectors:
8+
- ipv4Interfaces: {}
89
- hostServices: {}
910
- cpu: {}
1011
- hostOS: {}
@@ -40,6 +41,14 @@ spec:
4041
command: journalctl
4142
args: [ "--since", "2 days ago", "--no-pager", "-u", "k0scontroller.service" ]
4243
hostAnalyzers:
44+
- ipv4Interfaces:
45+
outcomes:
46+
- fail:
47+
when: "count == 0"
48+
message: No IPv4 interfaces detected
49+
- pass:
50+
when: "count >= 1"
51+
message: IPv4 interface detected
4352
- memory:
4453
checkName: Amount of Memory
4554
outcomes:

0 commit comments

Comments
 (0)