grafana / grafana-app-sdk

An SDK for developing apps for grafana using kubernetes-like storage and operators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate equality methods for each subresource

radiohead opened this issue · comments

What

Add codegen for equality methods for each subresource, e.g. Spec#Equal, Status#Equal, Metadata#Equal and so on.

Why

Currently users have to write those themselves but the logic is very straightforward so we should be able to generate them.

It might turn out to be very tricky for composite data types but I suggest that we fall back to reflect.DeepEqual in such cases.