diff --git a/api/v1beta1/verticadb_conversion.go b/api/v1beta1/verticadb_conversion.go index a8b5a1b6f..4148bf50e 100644 --- a/api/v1beta1/verticadb_conversion.go +++ b/api/v1beta1/verticadb_conversion.go @@ -264,7 +264,7 @@ func convertToStatus(src *VerticaDBStatus) v1.VerticaDBStatus { RestorePoint: (*v1.RestorePointInfo)(src.RestorePoint), } for i := range src.Subclusters { - dst.Subclusters[i] = convertToSubclusterStatus(src.Subclusters[i]) + dst.Subclusters[i] = convertToSubclusterStatus(&src.Subclusters[i]) } for i := range src.Conditions { meta.SetStatusCondition(&dst.Conditions, convertToStatusCondition(src.Conditions[i])) @@ -463,7 +463,7 @@ func convertFromSubclusterNameSlice(src []v1.SubclusterName) []SubclusterName { } // convetToSubcluterStatus will convert to a v1 SubcluterStatus from a v1beta1 version -func convertToSubclusterStatus(src SubclusterStatus) v1.SubclusterStatus { +func convertToSubclusterStatus(src *SubclusterStatus) v1.SubclusterStatus { return v1.SubclusterStatus{ Name: src.Name, Oid: src.Oid,