vernemq / vmq-operator

VerneMQ Operator creates/configures/manages VerneMQ clusters atop Kubernetes
Apache License 2.0
30 stars 20 forks source link

Can't set protocol versions of listener #12

Closed knopki closed 4 years ago

knopki commented 5 years ago

Operator image vernemq/vmq-operator@sha256:4dc6f9f24b9415dc38346259635b88a8545fceeb3897bcbeeade2eec3951814e (current :latest)

CR like

---
apiVersion: vernemq.com/v1alpha1
kind: VerneMQ
metadata:
  labels:
    vernemq: main
  name: main
spec:
  baseImage: vernemq/vernemq
  config:
    listeners:
      - address: 0.0.0.0
        port: 1883
        protocolVersions: '3,4,5'
  size: 1
  version: 1.9.2

Error in vernemq-main-0 pod's log:

13:33:37.888 [error] Execute error: ["vmq-admin","listener","start","address=0.0.0.0","port=1883","--protocol_versions=3,4,5"] error {badmatch,{error,{invalid_key,"protocol_versions"}}}

Looks like operator use protocol_versions argument instead of allowed_protocol_versions.

larshesel commented 5 years ago

Thanks for opening the issue - I suppose vernemq/vernemq#1348 fixes part of the problem, but a fix for the operator will be needed as well?