diff --git a/api/observability/v1alpha1/prom_types.go b/api/observability/v1alpha1/prom_types.go index 22718a7..9aa85f2 100644 --- a/api/observability/v1alpha1/prom_types.go +++ b/api/observability/v1alpha1/prom_types.go @@ -171,7 +171,7 @@ type ProxyConfig struct { // these headers are going to contain secrets and use Secret as the // value type instead of string. // +kubebuilder:validation:Optional - ProxyConnectHeader *prom_config.Header `yaml:"proxy_connect_header,omitempty" json:"proxy_connect_header,omitempty"` + ProxyConnectHeader prom_config.Header `yaml:"proxy_connect_header,omitempty" json:"proxy_connect_header,omitempty"` } type RelabelConfig struct { diff --git a/api/observability/v1alpha1/zz_generated.deepcopy.go b/api/observability/v1alpha1/zz_generated.deepcopy.go index 339473f..cb7aefa 100644 --- a/api/observability/v1alpha1/zz_generated.deepcopy.go +++ b/api/observability/v1alpha1/zz_generated.deepcopy.go @@ -1943,21 +1943,17 @@ func (in *ProxyConfig) DeepCopyInto(out *ProxyConfig) { } if in.ProxyConnectHeader != nil { in, out := &in.ProxyConnectHeader, &out.ProxyConnectHeader - *out = new(map[string][]config.Secret) - if **in != nil { - in, out := *in, *out - *out = make(map[string][]config.Secret, len(*in)) - for key, val := range *in { - var outVal []config.Secret - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = make([]config.Secret, len(*in)) - copy(*out, *in) - } - (*out)[key] = outVal + *out = make(config.Header, len(*in)) + for key, val := range *in { + var outVal []config.Secret + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = make([]config.Secret, len(*in)) + copy(*out, *in) } + (*out)[key] = outVal } } }