openshift / openshift/cert-manager-operator

openshift.io/cluster-monitoring incorrectly set as annotation instead of a label

Open
#336 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
38
Forks
52
Avg merge
7d 2h
Merged PRs (30d)
3

Description

According to the OCP docs, if cluster monitoring should scrape a namespace, label openshift.io/cluster-monitoring: "true" should be set.

Openshifts's Cert manager operator however incorrectly sets an annotation openshift.io/cluster-monitoring: "true" instead of a label:

apiVersion: v1
kind: Namespace
metadata:
  annotations:
    openshift.io/cluster-monitoring: "true"
    ...
  creationTimestamp: "2025-10-24T11:36:25Z"
  labels:
    kubernetes.io/metadata.name: cert-manager
    pod-security.kubernetes.io/audit: restricted
    pod-security.kubernetes.io/audit-version: latest
    pod-security.kubernetes.io/warn: restricted
    pod-security.kubernetes.io/warn-version: latest
  name: cert-manager
  resourceVersion: "86164062"
  uid: e0f7b893-2732-4de8-b253-302098bc74b1
spec:
  finalizers:
  - kubernetes
status:
  phase: Active

Checked with 1.15.1, and 1.17.0 with the same result.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by locating where the cert-manager operator creates or updates the cert-manager Namespace, then compare its metadata with the OpenShift monitoring requirement. Done means openshift.io/cluster-monitoring is emitted as a label with the value "true", not as an annotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.