k8wiz
cert-manager
Hard
Troubleshooting

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

Select your answer:

Show answer and explanation

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.

Read more about cert-manager