Skip to content

Helm 'test-mqtt-cli.yml' test fails when using a custom service name #693

@trbarton

Description

@trbarton

In our particular use case we override the names of the K8s services to make it easier for our TLS termination layer (NGINX) to target them.

e.g.

services:
  - type: mqtt
    name: "hivemq-enterprise-mqtt"
    exposed: true
    containerPort: 1883
    hivemqProxyProtocol: true
  
  - type: websocket
    name: "hivemq-enterprise-ws"
    exposed: true
    containerPort: 8001
    hivemqProxyProtocol: true
  
  - type: control-center
    name: "hivemq-enterprise-cc"
    exposed: true
    containerPort: 8080
    sessionAffinity:
      type: ClientIP

However, this causes the test in the hivemq-platform helm chart to fail as the service name pattern is hard coded:

args: [ "test",
"-h",
"{{ printf "hivemq-%s-mqtt-1883" $.Release.Name | trimAll "-" | trunc 63 | trimSuffix "-" | trim }}" ]

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions