Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix naming in MQTT statefulset #73

Closed
blokovi opened this issue Dec 8, 2020 · 3 comments · Fixed by #81
Closed

Fix naming in MQTT statefulset #73

blokovi opened this issue Dec 8, 2020 · 3 comments · Fixed by #81

Comments

@blokovi
Copy link
Contributor

blokovi commented Dec 8, 2020

Naming of several resources are misleading or can be confusing within MQTT stateful set:

  • it's statefulset but filename is adapter_mqtt-deployment.yaml, file name shoud be renamed from deployment to statefulset
  • container created (by default) from image mainflux/vernemq is named mainflux-adapter-mqtt, better name for this is broker then adapter
  • container created from image mainflux/mqtt is named mainflux-mqtt-proxy. This is partilly correct, but a more accurate term would be adapter instead of proxy
  • statefulset containing the above two containers is named mainflux-adapter-mqtt. That is maybe ok, but if we rename proxy to adapter, that could be confusing
@dborovcanin
Copy link
Contributor

I think that filename, as well as renaming VerneMQ container to mqtt-broker and MQTT adapter to mqtt-adapter is fine. The only remaining question is the statefulset. Maybe simply mainflux-mqtt?

@blokovi
Copy link
Contributor Author

blokovi commented Dec 8, 2020

I think that filename, as well as renaming VerneMQ container to mqtt-broker and MQTT adapter to mqtt-adapter is fine. The only remaining question is the statefulset. Maybe simply mainflux-mqtt?

I like this solution for statefulset mainflux-mqtt, (actually it would be {{ .Release.Name }}-mqtt). The simplest solution is always best.
Just note - name of deployments for other adapters are mainflux-adapter-coap mainflux-adapter-http so for the sake of consistency I would just reverse the order of the words in your proposal.

So:
mainflux-mqtt = mainflux-broker-mqtt + mainflux-adapter-mqtt

@manuio
Copy link
Contributor

manuio commented Dec 8, 2020

I agree for mainflux-mqtt = mainflux-broker-mqtt + mainflux-adapter-mqtt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants