Skip to content

Commit 0cf9265

Browse files
feat(e2e): make sure we can override worker profiles (#223)
add an extra unsupported override during e2e tests.
1 parent 357a297 commit 0cf9265

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

e2e/scripts/unsupported-overrides.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ spec:
1313
spec:
1414
telemetry:
1515
enabled: true
16+
workerProfiles:
17+
- name: ip-forward
18+
values:
19+
allowedUnsafeSysctls:
20+
- net.ipv4.ip_forward
1621
"
1722

1823
embed_cluster_config() {
@@ -51,6 +56,11 @@ override_applied() {
5156
cat "$K0SCTLCONFIG"
5257
return 1
5358
fi
59+
if ! grep "net.ipv4.ip_forward" "$K0SCTLCONFIG"; then
60+
echo "override not applied, expected worker profile not found, actual config:"
61+
cat "$K0SCTLCONFIG"
62+
return 1
63+
fi
5464
}
5565

5666
main() {

0 commit comments

Comments
 (0)