Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/client/kubeclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (c client) VirtualMachines(namespace string) virtualizationv1alpha2.Virtual
restClient: c.restClient,
config: c.config,
namespace: namespace,
resource: "virtualmachines",
resource: "apivirtualmachines",
}
}

Expand Down
2 changes: 1 addition & 1 deletion api/scripts/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function generate::subresources {
--output-file "zz_generated.openapi.go" \
--go-header-file "${SCRIPT_DIR}/boilerplate.go.txt" \
-r /dev/null \
"${THIS_PKG}/core/v1alpha2" "${THIS_PKG}/subresources/v1alpha2" "kubevirt.io/api/core/v1" "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/api/resource" "k8s.io/apimachinery/pkg/version"
"${THIS_PKG}/subresources/v1alpha2" "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/version"
}

function generate::core {
Expand Down
1 change: 1 addition & 0 deletions api/subresources/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ var (
// TODO: move types virtv2 to pkg/apiserver/api/install
func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&APIVirtualMachine{},
&VirtualMachineConsole{},
&VirtualMachineVNC{},
&VirtualMachinePortForward{},
Expand Down
6 changes: 6 additions & 0 deletions api/subresources/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type APIVirtualMachine struct {
metav1.TypeMeta
metav1.ObjectMeta
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

type VirtualMachineConsole struct {
Expand Down
1 change: 1 addition & 0 deletions api/subresources/v1alpha2/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ var (

func addKnownTypes(scheme *runtime.Scheme) error {
scheme.AddKnownTypes(SchemeGroupVersion,
&APIVirtualMachine{},
&VirtualMachineConsole{},
&VirtualMachineVNC{},
&VirtualMachinePortForward{},
Expand Down
6 changes: 6 additions & 0 deletions api/subresources/v1alpha2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ package v1alpha2

import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type APIVirtualMachine struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +k8s:conversion-gen:explicit-from=net/url.Values

Expand Down
30 changes: 30 additions & 0 deletions api/subresources/v1alpha2/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions api/subresources/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions api/subresources/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/components/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ firmware:
libvirt: 10.9.0
edk2: stable202411
core:
3p-kubevirt: v1.3.1-v12n.9
3p-kubevirt: use-virtualization-api # v1.3.1-v12n.9
3p-containerized-data-importer: v1.60.3-v12n.9
distribution: 2.8.3
package:
Expand Down
Loading
Loading