Skip to content

Commit

Permalink
Fix: minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Mende committed Jan 31, 2024
1 parent ee37702 commit 79a42fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cloudprovider/provider/kubevirt/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func (p *provider) parseOSImageSource(primaryDisk kubevirttypes.PrimaryDisk, nam
if err != nil {
return nil, fmt.Errorf(`failed to get value of "primaryDisk.osImage" field: %w`, err)
}
osImageSource, err := p.configVarResolver.GetConfigVarStringValue(primaryDisk.Source)
osImageSource, err := p.configVarResolver.GetConfigVarStringValue(&primaryDisk.Source)
if err != nil {
return nil, fmt.Errorf(`failed to get value of "primaryDisk.source" field: %w`, err)
}
Expand Down Expand Up @@ -426,7 +426,7 @@ func getNamespace() string {
}

func (p *provider) getPullMethod(pullMethod providerconfigtypes.ConfigVarString) (cdiv1beta1.RegistryPullMethod, error) {
resolvedPM, err := p.configVarResolver.GetConfigVarStringValue(pullMethod)
resolvedPM, err := p.configVarResolver.GetConfigVarStringValue(&pullMethod)
if err != nil {
return "", err
}
Expand Down Expand Up @@ -850,7 +850,7 @@ func getDataVolumeTemplates(config *Config, dataVolumeName string) []kubevirtv1.
AccessModes: []corev1.PersistentVolumeAccessMode{
"ReadWriteOnce",
},
Resources: corev1.ResourceRequirements{
Resources: corev1.VolumeResourceRequirements{
Requests: pvcRequest,
},
},
Expand All @@ -869,7 +869,7 @@ func getDataVolumeTemplates(config *Config, dataVolumeName string) []kubevirtv1.
AccessModes: []corev1.PersistentVolumeAccessMode{
"ReadWriteOnce",
},
Resources: corev1.ResourceRequirements{
Resources: corev1.VolumeResourceRequirements{
Requests: corev1.ResourceList{corev1.ResourceStorage: sd.Size},
},
},
Expand Down

0 comments on commit 79a42fa

Please sign in to comment.