2023-05-24 11:13:44 -05:00
|
|
|
package kinds
|
|
|
|
|
|
|
|
import (
|
2024-01-12 15:18:14 -06:00
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
2023-05-24 11:13:44 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// GrafanaResource is a generic kubernetes resource with a helper for the common grafana metadata
|
|
|
|
// This is a temporary solution until this object (or similar) can be moved to the app-sdk or kindsys
|
2023-08-30 10:46:47 -05:00
|
|
|
type GrafanaResource[Spec any, Status any] struct {
|
2024-01-12 15:18:14 -06:00
|
|
|
metav1.TypeMeta `json:",inline"`
|
|
|
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
2023-05-24 11:13:44 -05:00
|
|
|
|
2024-01-12 15:18:14 -06:00
|
|
|
Spec *Spec `json:"spec,omitempty"`
|
|
|
|
Status *Status `json:"status,omitempty"`
|
2023-05-24 11:13:44 -05:00
|
|
|
|
|
|
|
// Avoid extending
|
2023-10-30 16:08:31 -05:00
|
|
|
_ any `json:"-"`
|
2023-05-24 11:13:44 -05:00
|
|
|
}
|