# You upgrade cert-manager from 1.20 to 1.21 with a values file that still sets prometheus.servicemonitor.targetPort. What happens?

cert-manager, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/you-upgrade-cert-manager-from-120-to-121-with-a-values-file-that-still-sets-prometheusservicemonitortargetport-what-happens

- A. Helm rejects the values with a schema validation error
- B. The value is ignored and the default port http-metrics is used
- C. The ServiceMonitor keeps the old port tcp-prometheus-servicemonitor
- D. The controller Service gets a second metrics port with that name

**Answer:** Helm rejects the values with a schema validation error

**Explanation:** cert-manager 1.21 removed prometheus.servicemonitor.targetPort, prometheus.servicemonitor.path and prometheus.podmonitor.path, and renamed the controller Service metrics port to http-metrics. The chart's values schema uses additionalProperties: false, so any of the removed keys makes the upgrade fail validation until you delete them.
