Skip to content

Commit

Permalink
Fix compatibility issues with go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinliu24 committed Sep 17, 2024
1 parent 13a1c25 commit 9cfda80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apis/apps/v1alpha1/nebulacluster_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func coredumpVolume(componentType string) string {
return componentType + "-coredump"
}

func parseStorageRequest(res corev1.ResourceList) (corev1.ResourceRequirements, error) {
func parseStorageRequest(res corev1.ResourceList) (corev1.VolumeResourceRequirements, error) {
if res == nil {
return corev1.VolumeResourceRequirements{}, nil
}
Expand Down Expand Up @@ -392,7 +392,7 @@ func getCoredumpStorageClass(nc *NebulaCluster) *string {
return scName
}

func getCoredumpStorageResources(nc *NebulaCluster) *corev1.ResourceRequirements {
func getCoredumpStorageResources(nc *NebulaCluster) *corev1.VolumeResourceRequirements {
if nc.Spec.CoredumpPreservation == nil {
return nil
}
Expand Down

0 comments on commit 9cfda80

Please sign in to comment.