opensearch-project / helm-charts

:wheel_of_dharma: A community repository for Helm Charts of OpenSearch Project.
https://opensearch.org/docs/latest/opensearch/install/helm/
Apache License 2.0
173 stars 234 forks source link

[BUG][opensearch-dashboard] add protocol TCP for metricsPortName #588

Closed dmpe closed 2 months ago

dmpe commented 2 months ago

Describe the bug

When using server side apply, argocd says

Failed to compare desired state to live state: failed to calculate diff: error calculating server side diff: serverSideDiff error: error removing non config mutations for resource Service/opensearch-dashboards: error reverting webhook modified fields in predicted live resource: .spec.ports: element 1: associative list with keys has an element that omits key field "protocol" (and doesn't have default value)

Using latest version, helm chart is missing protocol property for metrics port

  - name: {{ .Values.service.metricsPortName | default "metrics" }}
    port: {{ .Values.service.metricsPort }}

To Reproduce

Steps to reproduce the behavior:

  1. Deploy Opensearch dashboard to k8s cluster via ArgoCD
  2. observe the error message

Expected behavior

Add protocol: TCP to the helm chart

Chart Name

opensearch-dashboard

Screenshots If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

prudhvigodithi commented 2 months ago

This bug is coming from the PR https://github.com/opensearch-project/helm-charts/pull/581, adding @VILJkid and @eyenx to please take a look. Thank you

VILJkid commented 2 months ago

Thanks @dmpe, @prudhvigodithi for pointing this one out! Looking into this and raising a PR with the fix shortly.