polarismesh / polaris

Service Discovery and Governance Platform for Microservice and Distributed Architecture
https://polarismesh.cn
Other
2.41k stars 399 forks source link

Key "healthChecker" error while using Helm install, reporting "error calling eq: uncomparable type ..." #1292

Closed jiaozhentian closed 11 months ago

jiaozhentian commented 1 year ago

Describe the bug when using helm install polaris v1.17.7/v1.17.8 cluster, error occurred for key "healthChecker".

To Reproduce Just install polaris cluster use helm, config mysql & redis properly, then the error will show up.

Expected behavior Install polaris by Helm smoothly

Environment

Additional context Add any other context about the problem here.

The values.yaml was modified properly, and installed with command helm install polaris --namespace polaris . error is:

Error: INSTALLATION FAILED: template: polaris/templates/config-polaris-server.yaml:319:13: executing "polaris/templates/config-polaris-server.yaml" at <eq .Values.polaris.healthChecker "heartbeatRedis">: error calling eq: uncomparable type []interface {}: [map[type:heartbeatRedis] map[type:heartbeatLeader]]

It seems that these codes are not fit properly line319

{{- if eq .Values.global.mode "cluster" }}
      {{- if eq .Values.polaris.healthChecker "heartbeatRedis"  }}

and line33

healthChecker:
    type: heartbeatRedis
    type: heartbeatLeader

if this error need exteral configuration which is not mentioned in README, please make it complete.