diff --git a/cmd/collect-profiles/main.go b/cmd/collect-profiles/main.go index a7e3a673bc..89b42c5d0a 100644 --- a/cmd/collect-profiles/main.go +++ b/cmd/collect-profiles/main.go @@ -31,7 +31,6 @@ import ( const ( profileConfigMapLabelKey = "olm.openshift.io/pprof" - olmNamespace = "openshift-operator-lifecycle-manager" pprofSecretName = "pprof-cert" ) @@ -318,7 +317,7 @@ func requestURLBody(httpClient *http.Client, u *url.URL) ([]byte, error) { func populateServingCert(ctx context.Context, client client.Client) error { secret := &corev1.Secret{} - err := client.Get(ctx, types.NamespacedName{Namespace: olmNamespace, Name: pprofSecretName}, secret) + err := client.Get(ctx, types.NamespacedName{Namespace: namespace, Name: pprofSecretName}, secret) if err != nil { return err }