Skip to content

Commit 6d684d4

Browse files
Merge pull request #208 from awgreene/update-collect-profile-namespace
Bug 2016228: Use arguments to configure pprof-secret
2 parents dde7292 + 0c261a1 commit 6d684d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/collect-profiles/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131

3232
const (
3333
profileConfigMapLabelKey = "olm.openshift.io/pprof"
34-
olmNamespace = "openshift-operator-lifecycle-manager"
3534
pprofSecretName = "pprof-cert"
3635
)
3736

@@ -318,7 +317,7 @@ func requestURLBody(httpClient *http.Client, u *url.URL) ([]byte, error) {
318317

319318
func populateServingCert(ctx context.Context, client client.Client) error {
320319
secret := &corev1.Secret{}
321-
err := client.Get(ctx, types.NamespacedName{Namespace: olmNamespace, Name: pprofSecretName}, secret)
320+
err := client.Get(ctx, types.NamespacedName{Namespace: namespace, Name: pprofSecretName}, secret)
322321
if err != nil {
323322
return err
324323
}

0 commit comments

Comments
 (0)