diff --git a/api/v1alpha1/perses_config.go b/api/v1alpha1/perses_config.go index ae9a9a0..725ad66 100644 --- a/api/v1alpha1/perses_config.go +++ b/api/v1alpha1/perses_config.go @@ -11,15 +11,14 @@ type PersesConfig struct { config.Config `json:",inline"` } - func (in *PersesConfig) DeepCopyInto(out *PersesConfig) { - if in == nil { - return - } - - copied, err := deep.Copy(in) - if err != nil { - panic(fmt.Errorf("failed to deep copy PersesConfig: %w", err)) - } - *out = *copied + if in == nil { + return + } + + copied, err := deep.Copy(in) + if err != nil { + panic(fmt.Errorf("failed to deep copy PersesConfig: %w", err)) + } + *out = *copied } diff --git a/api/v1alpha1/perses_dashboard.go b/api/v1alpha1/perses_dashboard.go index 8266ce6..4c3a17e 100644 --- a/api/v1alpha1/perses_dashboard.go +++ b/api/v1alpha1/perses_dashboard.go @@ -11,18 +11,14 @@ type Dashboard struct { persesv1.DashboardSpec `json:",inline"` } - - func (in *Dashboard) DeepCopyInto(out *Dashboard) { - if in == nil { - return - } - - copied, err := deep.Copy(in) - if err != nil { - panic(fmt.Errorf("failed to deep copy Dashboard: %w", err)) - } - *out = *copied + if in == nil { + return + } + + copied, err := deep.Copy(in) + if err != nil { + panic(fmt.Errorf("failed to deep copy Dashboard: %w", err)) + } + *out = *copied } - - diff --git a/api/v1alpha1/perses_datasource.go b/api/v1alpha1/perses_datasource.go index 192e288..5e5ddee 100644 --- a/api/v1alpha1/perses_datasource.go +++ b/api/v1alpha1/perses_datasource.go @@ -12,13 +12,13 @@ type Datasource struct { } func (in *Datasource) DeepCopyInto(out *Datasource) { - if in == nil { - return - } - - copied, err := deep.Copy(in) - if err != nil { - panic(fmt.Errorf("failed to deep copy Datasource: %w", err)) - } - *out = *copied + if in == nil { + return + } + + copied, err := deep.Copy(in) + if err != nil { + panic(fmt.Errorf("failed to deep copy Datasource: %w", err)) + } + *out = *copied }