Skip to content

Commit 2242438

Browse files
authored
refactor kubevirt cloud spec (#3670) (#3671)
(cherry picked from commit b4068ba) Signed-off-by: moadqassem <[email protected]>
1 parent 8bb8dd3 commit 2242438

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/api_reference/v1beta2.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "v1beta2 API Reference"
3-
date = 2025-06-10T14:30:50+02:00
3+
date = 2025-06-11T12:48:35+02:00
44
weight = 11
55
+++
66
## v1beta2
@@ -573,7 +573,7 @@ KubevirtSpec defines the Kubevirt provider
573573
| ----- | ----------- | ------ | -------- |
574574
| infraNamespace | InfraNamespace is the namespace that KubeVirt provider will use to create and manage resources in the infra cluster, such as VirtualMachines, VirtualMachineInstances, etc... | string | true |
575575
| infraClusterKubeconfig | InfraClusterKubeconfig is a base64-encoded kubeconfig file that points to a KubeVirt infra cluster (a cluster where KubeVirt is installed). This Kubeconfig will be used to create and manage KubeVirt specific resources such as DataVolumes. | string | true |
576-
| ZoneAndRegionEnabled | ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider | bool | true |
576+
| zoneAndRegionEnabled | ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider | bool | false |
577577
| loadBalancerEnabled | LoadBalancerEnabled indicates if the ccm should create and manage the clusters load balancers. | bool | false |
578578

579579
[Back to Group](#v1beta2)

docs/api_reference/v1beta3.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "v1beta3 API Reference"
3-
date = 2025-06-10T14:30:50+02:00
3+
date = 2025-06-11T12:48:35+02:00
44
weight = 11
55
+++
66
## v1beta3
@@ -575,7 +575,7 @@ KubevirtSpec defines the Kubevirt provider
575575
| ----- | ----------- | ------ | -------- |
576576
| infraNamespace | InfraNamespace is the namespace that KubeVirt provider will use to create and manage resources in the infra cluster, such as VirtualMachines, VirtualMachineInstances, etc... | string | true |
577577
| infraClusterKubeconfig | InfraClusterKubeconfig is a base64-encoded kubeconfig file that points to a KubeVirt infra cluster (a cluster where KubeVirt is installed). This Kubeconfig will be used to create and manage KubeVirt specific resources such as DataVolumes. | string | true |
578-
| ZoneAndRegionEnabled | ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider | bool | true |
578+
| zoneAndRegionEnabled | ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider | bool | false |
579579
| loadBalancerEnabled | LoadBalancerEnabled indicates if the ccm should create and manage the clusters load balancers. | bool | false |
580580

581581
[Back to Group](#v1beta3)

pkg/apis/kubeone/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ type KubevirtSpec struct {
450450
// This Kubeconfig will be used to create and manage KubeVirt specific resources such as DataVolumes.
451451
InfraClusterKubeconfig string `json:"infraClusterKubeconfig"`
452452
// ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider
453-
ZoneAndRegionEnabled bool `yaml:"zoneAndRegionEnabled,omitempty"`
453+
ZoneAndRegionEnabled bool `json:"zoneAndRegionEnabled,omitempty"`
454454
// LoadBalancerEnabled indicates if the ccm should create and manage the clusters load balancers.
455455
LoadBalancerEnabled bool `json:"loadBalancerEnabled,omitempty"`
456456
}

pkg/apis/kubeone/v1beta2/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ type KubevirtSpec struct {
455455
// This Kubeconfig will be used to create and manage KubeVirt specific resources such as DataVolumes.
456456
InfraClusterKubeconfig string `json:"infraClusterKubeconfig"`
457457
// ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider
458-
ZoneAndRegionEnabled bool `yaml:"zoneAndRegionEnabled,omitempty"`
458+
ZoneAndRegionEnabled bool `json:"zoneAndRegionEnabled,omitempty"`
459459
// LoadBalancerEnabled indicates if the ccm should create and manage the clusters load balancers.
460460
LoadBalancerEnabled bool `json:"loadBalancerEnabled,omitempty"`
461461
}

pkg/apis/kubeone/v1beta3/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ type KubevirtSpec struct {
447447
// This Kubeconfig will be used to create and manage KubeVirt specific resources such as DataVolumes.
448448
InfraClusterKubeconfig string `json:"infraClusterKubeconfig"`
449449
// ZoneAndRegionEnabled indicates if need to get Region and zone labels from the cloud provider
450-
ZoneAndRegionEnabled bool `yaml:"zoneAndRegionEnabled,omitempty"`
450+
ZoneAndRegionEnabled bool `json:"zoneAndRegionEnabled,omitempty"`
451451
// LoadBalancerEnabled indicates if the ccm should create and manage the clusters load balancers.
452452
LoadBalancerEnabled bool `json:"loadBalancerEnabled,omitempty"`
453453
}

0 commit comments

Comments
 (0)