Skip to content

Commit 5ec1c72

Browse files
authored
chore: Bump flintlock to 0.5.0 (#71)
1 parent c86da65 commit 5ec1c72

File tree

4 files changed

+41
-12
lines changed

4 files changed

+41
-12
lines changed

example.json

+15-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,27 @@
77
"vcpu": 2,
88
"memory_in_mb": 2048,
99
"kernel": {
10-
"image": "ghcr.io/weaveworks/flintlock-kernel:5.10.77",
10+
"image": "ghcr.io/weaveworks-liquidmetal/kernel-bin:5.10.77",
1111
"filename": "boot/vmlinux",
1212
"add_network_config": true
1313
},
1414
"root_volume": {
15-
"id": "root",
15+
"id": "root",
16+
"is_read_only": false,
17+
"source": {
18+
"container_source": "ghcr.io/weaveworks-liquidmetal/capmvm-k8s-os:1.23.5"
19+
}
20+
},
21+
"additional_volumes": [
22+
{
23+
"id": "modules",
1624
"is_read_only": false,
1725
"source": {
18-
"container_source": "ghcr.io/weaveworks/capmvm-kubernetes:1.21.8"
19-
}
20-
},
26+
"container_source": "ghcr.io/weaveworks-liquidmetal/kernel-modules:5.10.77"
27+
},
28+
"mount_point": "/lib/modules/5.10.77"
29+
}
30+
],
2131
"interfaces": [
2232
{
2333
"device_id": "eth1",

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ require (
66
github.com/onsi/ginkgo/v2 v2.4.0
77
github.com/urfave/cli/v2 v2.10.2
88
github.com/warehouse-13/safety v0.0.0-20230120170710-60c7451457c5
9-
github.com/weaveworks-liquidmetal/flintlock/api v0.0.0-20221117153111-bd29de31356f
10-
github.com/weaveworks-liquidmetal/flintlock/client v0.0.0-20220722132608-982d429ba641
9+
github.com/weaveworks-liquidmetal/flintlock/api v0.0.0-20230113160655-b1354ef6d578
10+
github.com/weaveworks-liquidmetal/flintlock/client v0.0.0-20230113160655-b1354ef6d578
1111
google.golang.org/grpc v1.51.0
1212
google.golang.org/protobuf v1.28.1
1313
gopkg.in/yaml.v2 v2.4.0

go.sum

+4
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,12 @@ github.com/warehouse-13/safety v0.0.0-20230120170710-60c7451457c5 h1:1uTkby9abQ0
249249
github.com/warehouse-13/safety v0.0.0-20230120170710-60c7451457c5/go.mod h1:hTlI1j1CXNEYrNoGbw7bAPj1/maOkuvGgoi63donJ5I=
250250
github.com/weaveworks-liquidmetal/flintlock/api v0.0.0-20221117153111-bd29de31356f h1:xHtKo4eiR1pRZUrXxlGF3KDuoa6xYjBGuPP47M9eVWM=
251251
github.com/weaveworks-liquidmetal/flintlock/api v0.0.0-20221117153111-bd29de31356f/go.mod h1:JPML9O56MoPKGX97jfj++BtuFFS84jm4T+jWQBjO5Uc=
252+
github.com/weaveworks-liquidmetal/flintlock/api v0.0.0-20230113160655-b1354ef6d578 h1:6LaBzWSOaaFI3fJ1oDDlfnlAmtPisrslVF+ZnmSKxr0=
253+
github.com/weaveworks-liquidmetal/flintlock/api v0.0.0-20230113160655-b1354ef6d578/go.mod h1:JPML9O56MoPKGX97jfj++BtuFFS84jm4T+jWQBjO5Uc=
252254
github.com/weaveworks-liquidmetal/flintlock/client v0.0.0-20220722132608-982d429ba641 h1:c5GlWX7UuBOQwx3Xfw4Jnd3VCHvChpkWaSVJhEbQcdo=
253255
github.com/weaveworks-liquidmetal/flintlock/client v0.0.0-20220722132608-982d429ba641/go.mod h1:d65mpsT+pbMnMJZhUqeNtt7lcQnsX8cowl9dTRkniSI=
256+
github.com/weaveworks-liquidmetal/flintlock/client v0.0.0-20230113160655-b1354ef6d578 h1:mBms3Efnv+YVbfMxN7/rHGveua8oteJwWreYfeYYTRE=
257+
github.com/weaveworks-liquidmetal/flintlock/client v0.0.0-20230113160655-b1354ef6d578/go.mod h1:d65mpsT+pbMnMJZhUqeNtt7lcQnsX8cowl9dTRkniSI=
254258
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=
255259
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
256260
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

pkg/defaults/defaults.go

+20-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ const (
1717

1818
const (
1919
// KernelImage is the default MVM kernel image.
20-
KernelImage = "ghcr.io/weaveworks/flintlock-kernel:5.10.77"
21-
// CloudImage is the default MVM cloud image.
22-
CloudImage = "ghcr.io/weaveworks/capmvm-kubernetes:1.21.8"
20+
KernelImage = "ghcr.io/weaveworks-liquidmetal/kernel-bin:5.10.77"
21+
// ModulesImage is the default MVM kernel image.
22+
ModulesImage = "ghcr.io/weaveworks-liquidmetal/kernel-modules:5.10.77"
23+
// OSImage is the default MVM OS image.
24+
OSImage = "ghcr.io/weaveworks-liquidmetal/capmvm-k8s-os:1.23.5"
25+
26+
kernelFilename = "boot/vmlinux"
27+
modulesPath = "/lib/modules/5.10.77"
2328
)
2429

2530
func BaseMicroVM() *types.MicroVMSpec {
@@ -28,14 +33,24 @@ func BaseMicroVM() *types.MicroVMSpec {
2833
MemoryInMb: 2048, //nolint: gomnd // we don't care
2934
Kernel: &types.Kernel{
3035
Image: KernelImage,
31-
Filename: pointer.String("boot/vmlinux"),
36+
Filename: pointer.String(kernelFilename),
3237
AddNetworkConfig: true,
3338
},
3439
RootVolume: &types.Volume{
3540
Id: "root",
3641
IsReadOnly: false,
3742
Source: &types.VolumeSource{
38-
ContainerSource: pointer.String(CloudImage),
43+
ContainerSource: pointer.String(OSImage),
44+
},
45+
},
46+
AdditionalVolumes: []*types.Volume{
47+
{
48+
Id: "modules",
49+
IsReadOnly: false,
50+
Source: &types.VolumeSource{
51+
ContainerSource: pointer.String(ModulesImage),
52+
},
53+
MountPoint: pointer.String(modulesPath),
3954
},
4055
},
4156
Interfaces: []*types.NetworkInterface{

0 commit comments

Comments
 (0)