mirror of
https://github.com/harvester/vm-import-controller.git
synced 2025-06-03 01:44:51 +00:00
Bump go to v1.23.4
Related to: https://github.com/harvester/harvester/issues/7336 Signed-off-by: Volker Theile <vtheile@suse.com>
This commit is contained in:
parent
84b35390c8
commit
d7f05cece9
@ -1,4 +1,4 @@
|
||||
FROM registry.suse.com/bci/golang:1.22.7
|
||||
FROM registry.suse.com/bci/golang:1.23
|
||||
|
||||
ARG DAPPER_HOST_ARCH
|
||||
ENV ARCH $DAPPER_HOST_ARCH
|
||||
@ -14,7 +14,7 @@ RUN export K8S_VERSION=1.24.2 && \
|
||||
mkdir /usr/local/kubebuilder && \
|
||||
tar -C /usr/local/kubebuilder --strip-components=1 -zvxf envtest-bins.tar.gz
|
||||
|
||||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.57.1/install.sh | sh -s v1.57.1
|
||||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.63.4
|
||||
|
||||
# The docker version in dapper is too old to have buildx. Install it manually.
|
||||
RUN curl -sSfL https://github.com/docker/buildx/releases/download/v0.13.1/buildx-v0.13.1.linux-${ARCH} -o buildx-v0.13.1.linux-${ARCH} && \
|
||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
||||
module github.com/harvester/vm-import-controller
|
||||
|
||||
go 1.22.7
|
||||
go 1.23.4
|
||||
|
||||
require (
|
||||
github.com/google/uuid v1.6.0
|
||||
|
@ -534,7 +534,7 @@ func (h *virtualMachineHandler) createVirtualMachine(vm *migration.VirtualMachin
|
||||
diskOrder++ // Disk order cant be 0, so need to kick things off from 1
|
||||
disks = append(disks, kubevirt.Disk{
|
||||
Name: fmt.Sprintf("disk-%d", i),
|
||||
BootOrder: &[]uint{uint(diskOrder)}[0],
|
||||
BootOrder: &[]uint{uint(diskOrder)}[0], // nolint:gosec
|
||||
DiskDevice: kubevirt.DiskDevice{
|
||||
Disk: &kubevirt.DiskTarget{
|
||||
Bus: v.BusType,
|
||||
|
@ -393,7 +393,7 @@ func (c *Client) GenerateVirtualMachine(vm *migration.VirtualMachineImport) (*ku
|
||||
Spec: kubevirt.VirtualMachineInstanceSpec{
|
||||
Domain: kubevirt.DomainSpec{
|
||||
CPU: &kubevirt.CPU{
|
||||
Cores: uint32(flavorObj.VCPUs),
|
||||
Cores: uint32(flavorObj.VCPUs), // nolint:gosec
|
||||
Sockets: uint32(1),
|
||||
Threads: 1,
|
||||
},
|
||||
|
@ -298,8 +298,8 @@ func (c *Client) GenerateVirtualMachine(vm *migration.VirtualMachineImport) (*ku
|
||||
Spec: kubevirt.VirtualMachineInstanceSpec{
|
||||
Domain: kubevirt.DomainSpec{
|
||||
CPU: &kubevirt.CPU{
|
||||
Cores: uint32(o.Config.Hardware.NumCPU),
|
||||
Sockets: uint32(o.Config.Hardware.NumCoresPerSocket),
|
||||
Cores: uint32(o.Config.Hardware.NumCPU), // nolint:gosec
|
||||
Sockets: uint32(o.Config.Hardware.NumCoresPerSocket), // nolint:gosec
|
||||
Threads: 1,
|
||||
},
|
||||
Memory: &kubevirt.Memory{
|
||||
|
Loading…
Reference in New Issue
Block a user