Skip to content

Commit

Permalink
Deprecate Guest Agent compatibility check
Browse files Browse the repository at this point in the history
Signed-off-by: Stu Gott <[email protected]>
  • Loading branch information
stu-gott committed Apr 15, 2021
1 parent f907969 commit 2fa98b7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion pkg/virt-config/virt-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const (
SmbiosConfigDefaultProduct = "None"
DefaultPermitBridgeInterfaceOnPodNetwork = true
DefaultSELinuxLauncherType = "virt_launcher.process"
SupportedGuestAgentVersions = "2.*,3.*,4.*"
SupportedGuestAgentVersions = "2.*,3.*,4.*,5.*"
DefaultARCHOVMFPath = "/usr/share/OVMF"
DefaultAARCH64OVMFPath = "/usr/share/AAVMF"
DefaultMemBalloonStatsPeriod uint32 = 10
Expand Down
33 changes: 17 additions & 16 deletions staging/src/kubevirt.io/client-go/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1646,22 +1646,23 @@ type RemoveVolumeOptions struct {
// KubeVirtConfiguration holds all kubevirt configurations
// +k8s:openapi-gen=true
type KubeVirtConfiguration struct {
CPUModel string `json:"cpuModel,omitempty"`
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
DeveloperConfiguration *DeveloperConfiguration `json:"developerConfiguration,omitempty"`
EmulatedMachines []string `json:"emulatedMachines,omitempty"`
ImagePullPolicy k8sv1.PullPolicy `json:"imagePullPolicy,omitempty"`
MigrationConfiguration *MigrationConfiguration `json:"migrations,omitempty"`
MachineType string `json:"machineType,omitempty"`
NetworkConfiguration *NetworkConfiguration `json:"network,omitempty"`
OVMFPath string `json:"ovmfPath,omitempty"`
SELinuxLauncherType string `json:"selinuxLauncherType,omitempty"`
SMBIOSConfig *SMBiosConfiguration `json:"smbios,omitempty"`
SupportedGuestAgentVersions []string `json:"supportedGuestAgentVersions,omitempty"`
MemBalloonStatsPeriod *uint32 `json:"memBalloonStatsPeriod,omitempty"`
PermittedHostDevices *PermittedHostDevices `json:"permittedHostDevices,omitempty"`
MinCPUModel string `json:"minCPUModel,omitempty"`
ObsoleteCPUModels map[string]bool `json:"obsoleteCPUModels,omitempty"`
CPUModel string `json:"cpuModel,omitempty"`
CPURequest *resource.Quantity `json:"cpuRequest,omitempty"`
DeveloperConfiguration *DeveloperConfiguration `json:"developerConfiguration,omitempty"`
EmulatedMachines []string `json:"emulatedMachines,omitempty"`
ImagePullPolicy k8sv1.PullPolicy `json:"imagePullPolicy,omitempty"`
MigrationConfiguration *MigrationConfiguration `json:"migrations,omitempty"`
MachineType string `json:"machineType,omitempty"`
NetworkConfiguration *NetworkConfiguration `json:"network,omitempty"`
OVMFPath string `json:"ovmfPath,omitempty"`
SELinuxLauncherType string `json:"selinuxLauncherType,omitempty"`
SMBIOSConfig *SMBiosConfiguration `json:"smbios,omitempty"`
// deprecated
SupportedGuestAgentVersions []string `json:"supportedGuestAgentVersions,omitempty"`
MemBalloonStatsPeriod *uint32 `json:"memBalloonStatsPeriod,omitempty"`
PermittedHostDevices *PermittedHostDevices `json:"permittedHostDevices,omitempty"`
MinCPUModel string `json:"minCPUModel,omitempty"`
ObsoleteCPUModels map[string]bool `json:"obsoleteCPUModels,omitempty"`
}

//
Expand Down

0 comments on commit 2fa98b7

Please sign in to comment.