added auth and config_dir (#667)

This commit is contained in:
Fabian Zimmermann 2021-03-14 22:41:35 +01:00 committed by GitHub
parent 194990c6c0
commit ab6cbbb1b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 2 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.0.7
description: Eclipse Mosquitto - An open source MQTT broker
name: mosquitto
version: 1.2.0
version: 1.3.0
kubeVersion: ">=1.16.0-0"
keywords:
- mosquitto

View File

@ -83,11 +83,17 @@ N/A
| persistence.data.enabled | bool | `false` | |
| persistence.data.mountPath | string | `"/mosquitto/data"` | |
| persistence.data.size | string | `"100Mi"` | |
| persistence.configinc.accessMode | string | `"ReadWriteOnce"` | |
| persistence.configinc.emptyDir | bool | `false` | |
| persistence.configinc.enabled | bool | `false` | |
| persistence.configinc.mountPath | string | `"/mosquitto/configinc"` | |
| persistence.configinc.size | string | `"100Mi"` | |
| service.annotations | object | `{}` | |
| service.port.name | string | `"mqtt"` | |
| service.port.port | int | `1883` | |
| service.type | string | `"ClusterIP"` | |
| strategy.type | string | `"Recreate"` | |
| auth.enabled | bool | `false` | |
## Changelog
@ -119,4 +125,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Join our [Discord](https://discord.gg/sTMX7Vh) community
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)

View File

@ -7,9 +7,16 @@ metadata:
data:
mosquitto.conf: |
listener {{ .Values.service.port.port }}
{{- if .Values.auth.enabled }}
allow_anonymous false
{{- else }}
allow_anonymous true
{{- end }}
{{- if .Values.persistence.data.enabled }}
persistence true
persistence_location {{ .Values.persistence.data.mountPath }}
autosave_interval 1800
{{- end }}
{{- if .Values.persistence.configinc.enabled }}
include_dir {{ .Values.persistence.configinc.mountPath }}
{{- end }}

View File

@ -21,6 +21,9 @@ service:
port: 1883
name: mqtt
auth:
enabled: false
persistence:
data:
enabled: false
@ -38,3 +41,20 @@ persistence:
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""
configinc:
# a persistent volume to place *.conf mosquitto-config-files in
enabled: false
emptyDir: false
mountPath: /mosquitto/configinc
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
# storageClass: "-"
accessMode: ReadWriteOnce
size: 100Mi
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""