We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9718f69 commit d1cf071Copy full SHA for d1cf071
internal/reconciler/implementation.go
@@ -53,6 +53,8 @@ func newObject(objectType client.Object) client.Object {
53
// without Elem(), t will be a pointer to the type. For example, *v1beta1.Gateway, not v1beta1.Gateway
54
t := reflect.TypeOf(objectType).Elem()
55
56
+ // We could've used objectType.DeepCopyObject() here, but it's a bit slower confirmed by benchmarks.
57
+
58
return reflect.New(t).Interface().(client.Object)
59
}
60
0 commit comments