Closed kappa8219 closed 3 months ago
Looks like this issue was introduced with #537
I'm looking into it and will try to fix it with a PR this afternoon!
Thanks @eyenx
Thanks @kappa8219, @eyenx, @prudhvigodithi for pointing this one out!
After going through the prometheus-operator, it was found that the template port
definition in ServiceMonitor
template is different from Service
template.
In short,
port
in ServiceMonitor
means the name
of the Service port. It's of type string
.port
in Service
means the port
number of the Service. It's of type int
. Thus, the confusion and bug was created in #537
I'll shortly raise a PR with the fix.
Got it thanks @VILJkid.
Close this issue as the related PR is merged:
Thanks.
Describe the bug Upgrade "opensearch" failed: failed to create resource: ServiceMonitor.monitoring.coreos.com "opensearch-cluster-master-service-monitor" is invalid: spec.endpoints[0].port: Invalid value: "integer": spec.endpoints[0].port in body must be of type string: "integer"
To Reproduce Steps to reproduce the behavior:
Expected behavior Upgrade successfull
Chart Name Both opensearch-dashboards, opensearch.
Host/Environment (please complete the following information):