Skip to content

Commit e28dcda

Browse files
committed
Merge remote-tracking branch 'origin/main' into k0s-1-29
2 parents 35f7c74 + 30a4b3b commit e28dcda

File tree

20 files changed

+268
-79
lines changed

20 files changed

+268
-79
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,11 @@ hack/release
3030
*.test
3131

3232
# helm charts dependencies
33-
*.tgz
33+
*.tgz
34+
35+
# test coverage files
36+
cover.out
37+
38+
# e2e test runs locally
39+
e2e/playwright*.tar.gz
40+
e2e/support-bundle*.tar.gz

cmd/installer/goods/support/host-support-bundle.tmpl.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,16 @@ spec:
299299
collectorName: "ps-detect-antivirus-and-security-tools"
300300
command: "sh"
301301
args: [-c, "ps -ef | grep -E 'clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon|mdatp' | grep -v grep"]
302+
- systemPackages:
303+
collectorName: security-tools-packages
304+
ubuntu:
305+
- sdcss-kmod
306+
- sdcss
307+
- sdcss-scripts
308+
rhel:
309+
- sdcss-kmod
310+
- sdcss
311+
- sdcss-scripts
302312
- filesystemPerformance:
303313
collectorName: filesystem-write-latency-etcd
304314
timeout: 5m
@@ -620,7 +630,7 @@ spec:
620630
- textAnalyze:
621631
checkName: "Detect Threat Management and Network Security Tools"
622632
fileName: host-collectors/run-host/ps-detect-antivirus-and-security-tools.txt
623-
regex: '\b(clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon)\b'
633+
regex: '\b(clamav|sophos|esets_daemon|fsav|symantec|mfend|ds_agent|kav|bdagent|s1agent|falcon|illumio|xagt|wdavdaemon|mdatp)\b'
624634
ignoreIfNoFiles: true
625635
outcomes:
626636
- fail:
@@ -629,6 +639,15 @@ spec:
629639
- pass:
630640
when: "false"
631641
message: "No antivirus or network security tools detected."
642+
- systemPackages:
643+
checkName: "Detected Security Packages"
644+
collectorName: security-tools-packages
645+
outcomes:
646+
- fail:
647+
when: '{{ "{{" }} .IsInstalled {{ "}}" }}'
648+
message: Package {{ "{{" }} .Name {{ "}}" }} is installed. This tool can interfere with kubernetes operation. Ensure the tool is either disabled or configured to not interfere with kubernetes operation.
649+
- pass:
650+
message: Package {{ "{{" }} .Name {{ "}}" }} is not installed
632651
- filesystemPerformance:
633652
checkName: Filesystem Write Latency
634653
collectorName: filesystem-write-latency-etcd

e2e/install_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,6 @@ func TestMultiNodeAirgapUpgradeSameK0s(t *testing.T) {
998998
Nodes: 2,
999999
Distribution: "ubuntu",
10001000
Version: "22.04",
1001-
InstanceType: "r1.medium",
10021001
})
10031002
defer tc.Cleanup()
10041003

@@ -1074,7 +1073,6 @@ func TestMultiNodeAirgapUpgrade(t *testing.T) {
10741073
Nodes: 2,
10751074
Distribution: "ubuntu",
10761075
Version: "22.04",
1077-
InstanceType: "r1.medium",
10781076
})
10791077
defer tc.Cleanup()
10801078

@@ -1157,7 +1155,6 @@ func TestMultiNodeAirgapUpgradePreviousStable(t *testing.T) {
11571155
Nodes: 2,
11581156
Distribution: "ubuntu",
11591157
Version: "22.04",
1160-
InstanceType: "r1.medium",
11611158
})
11621159
defer tc.Cleanup(withEnv)
11631160

@@ -1328,6 +1325,9 @@ func TestMultiNodeHAInstallation(t *testing.T) {
13281325

13291326
checkPostUpgradeStateWithOptions(t, tc, postUpgradeStateOptions{
13301327
node: 2,
1328+
withEnv: map[string]string{
1329+
"ALLOW_PENDING_PODS": "true",
1330+
},
13311331
})
13321332

13331333
t.Logf("%s: test complete", time.Now().Format(time.RFC3339))
@@ -1346,7 +1346,6 @@ func TestMultiNodeAirgapHAInstallation(t *testing.T) {
13461346
Nodes: 4,
13471347
Distribution: "ubuntu",
13481348
Version: "22.04",
1349-
InstanceType: "r1.medium",
13501349
SupportBundleNodeIndex: 2,
13511350
})
13521351
defer tc.Cleanup()
@@ -1454,6 +1453,9 @@ func TestMultiNodeAirgapHAInstallation(t *testing.T) {
14541453

14551454
checkPostUpgradeStateWithOptions(t, tc, postUpgradeStateOptions{
14561455
node: 2,
1456+
withEnv: map[string]string{
1457+
"ALLOW_PENDING_PODS": "true",
1458+
},
14571459
})
14581460

14591461
t.Logf("%s: test complete", time.Now().Format(time.RFC3339))
@@ -1609,7 +1611,6 @@ func TestFiveNodesAirgapUpgrade(t *testing.T) {
16091611
Nodes: 5,
16101612
Distribution: "ubuntu",
16111613
Version: "22.04",
1612-
InstanceType: "r1.medium",
16131614
})
16141615
defer tc.Cleanup()
16151616

e2e/playwright/tests/deploy-upgrade/test.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function fillConfigForm(iframe: FrameLocator) {
3535

3636
async function handlePreflightChecks(iframe: FrameLocator) {
3737
await expect(iframe.getByText('Preflight checks', { exact: true })).toBeVisible({ timeout: 10 * 1000 });
38-
await expect(iframe.getByRole('button', { name: 'Rerun' })).toBeVisible({ timeout: 10 * 1000 });
38+
await expect(iframe.getByRole('button', { name: 'Rerun' })).toBeVisible({ timeout: 30 * 1000 });
3939
await expect(iframe.locator('#app')).toContainText('The Volume Snapshots CRD exists');
4040
await expect(iframe.getByRole('button', { name: 'Back: Config' })).toBeVisible();
4141
await iframe.getByRole('button', { name: 'Next: Confirm and deploy' }).click();

e2e/restore_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ func TestSingleNodeAirgapDisasterRecovery(t *testing.T) {
359359
Nodes: 1,
360360
Distribution: "ubuntu",
361361
Version: "22.04",
362-
InstanceType: "r1.medium",
363362
})
364363
defer tc.Cleanup()
365364

@@ -642,7 +641,6 @@ func TestMultiNodeAirgapHADisasterRecovery(t *testing.T) {
642641
Nodes: 3,
643642
Distribution: "ubuntu",
644643
Version: "22.04",
645-
InstanceType: "r1.medium",
646644
})
647645
defer tc.Cleanup(withEnv)
648646

e2e/scripts/check-airgap-installation-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ main() {
4343
exit 1
4444
fi
4545

46-
validate_no_pods_in_crashloop
46+
validate_all_pods_healthy
4747
}
4848

4949
main "$@"

e2e/scripts/check-airgap-post-ha-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ main() {
8181
# scale the second deployment back down so that they aren't restored in the DR test
8282
kubectl scale -n "$APP_NAMESPACE" deployment/second --replicas=0
8383

84-
validate_no_pods_in_crashloop
84+
validate_all_pods_healthy
8585
}
8686

8787
main "$@"

e2e/scripts/check-installation-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ main() {
4949
validate_data_dirs
5050
fi
5151

52-
validate_no_pods_in_crashloop
52+
validate_all_pods_healthy
5353
}
5454

5555
main "$@"

e2e/scripts/check-post-ha-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ main() {
6161
exit 1
6262
fi
6363

64-
validate_no_pods_in_crashloop
64+
validate_all_pods_healthy
6565
}
6666

6767
main "$@"

e2e/scripts/check-postupgrade-state.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ main() {
111111

112112
validate_data_dirs
113113

114-
validate_no_pods_in_crashloop
114+
validate_all_pods_healthy
115115
}
116116

117117
main "$@"

0 commit comments

Comments
 (0)