mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-27 14:31:11 +01:00
chore: update extensions test
Update extensions test to use strategic patches and use `ExtensionServiceConfig` document. Depends on: https://github.com/siderolabs/extensions/pull/320 Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
parent
1366ce14a8
commit
f8b4ee82ae
@ -375,14 +375,14 @@ local ExtensionsStep(with_e2e=true) =
|
|||||||
extra_commands=[
|
extra_commands=[
|
||||||
// create a patch file to pass to the downstream build
|
// create a patch file to pass to the downstream build
|
||||||
// ignore nvidia extensions, testing nvidia extensions needs a machine with nvidia graphics card
|
// ignore nvidia extensions, testing nvidia extensions needs a machine with nvidia graphics card
|
||||||
'jq -R < _out/extensions-metadata | jq -s -f hack/test/extensions/extension-patch-filter.jq > _out/extensions-patch.json',
|
'jq -R < _out/extensions-metadata | jq -s -f hack/test/extensions/extension-patch-filter.jq | yq eval ".[] | split_doc" -P > _out/extensions-patch.yaml',
|
||||||
'cat _out/extensions-patch.json',
|
'cat _out/extensions-patch.yaml',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
local e2e_extensions = Step('e2e-extensions', target='e2e-qemu', privileged=true, depends_on=[extensions_patch_manifest], environment={
|
local e2e_extensions = Step('e2e-extensions', target='e2e-qemu', privileged=true, depends_on=[extensions_patch_manifest], environment={
|
||||||
QEMU_MEMORY_WORKERS: '4096',
|
QEMU_MEMORY_WORKERS: '4096',
|
||||||
WITH_CONFIG_PATCH_WORKER: '@_out/extensions-patch.json',
|
WITH_CONFIG_PATCH_WORKER: '@_out/extensions-patch.yaml',
|
||||||
IMAGE_REGISTRY: local_registry,
|
IMAGE_REGISTRY: local_registry,
|
||||||
QEMU_EXTRA_DISKS: '3',
|
QEMU_EXTRA_DISKS: '3',
|
||||||
SHORT_INTEGRATION_TEST: 'yes',
|
SHORT_INTEGRATION_TEST: 'yes',
|
||||||
|
|||||||
@ -1,24 +1,17 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"op": "add",
|
"machine": {
|
||||||
"path": "/machine/install/extensions",
|
"install": {
|
||||||
"value": [
|
"extensions": [
|
||||||
{
|
{
|
||||||
"image": map(select(. | contains("nvidia") or contains("tailscale") or contains("xe-guest-utilities") | not)) | .[]
|
"image": map(select(. | contains("nvidia") or contains("tailscale") or contains("xe-guest-utilities") | not)) | .[]
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
{
|
"sysctls": {
|
||||||
"op": "add",
|
|
||||||
"path": "/machine/sysctls",
|
|
||||||
"value": {
|
|
||||||
"user.max_user_namespaces": "11255"
|
"user.max_user_namespaces": "11255"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
"kernel": {
|
||||||
"op": "add",
|
|
||||||
"path": "/machine/kernel",
|
|
||||||
"value": {
|
|
||||||
"modules": [
|
"modules": [
|
||||||
{
|
{
|
||||||
"name": "asix"
|
"name": "asix"
|
||||||
@ -103,22 +96,24 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"apiVersion": "v1alpha1",
|
||||||
"path": "/machine/files",
|
"kind": "ExtensionServiceConfig",
|
||||||
"value": [
|
"name": "tailscale",
|
||||||
{
|
"environment": [
|
||||||
"path": "/var/etc/nut/upsmon.conf",
|
"TS_AUTHKEY=tskey-0000000000000000"
|
||||||
"permissions": 600,
|
]
|
||||||
"op": "create",
|
|
||||||
"content": "MONITOR ${upsmonHost} 1 remote ${upsmonPasswd} slave\nSHUTDOWNCMD \"/sbin/poweroff\""
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/var/etc/tailscale/auth.env",
|
"apiVersion": "v1alpha1",
|
||||||
"permissions": 600,
|
"kind": "ExtensionServiceConfig",
|
||||||
"op": "create",
|
"name": "nut-client",
|
||||||
"content": ""
|
"configFiles": [
|
||||||
|
{
|
||||||
|
"content": "MONITOR ${upsmonHost} 1 remote ${upsmonPasswd} slave\nSHUTDOWNCMD \"/sbin/poweroff\"",
|
||||||
|
"mountPath": "/usr/local/etc/nut/upsmon.conf"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user