Skip to content

Commit

Permalink
Merge pull request #81 from JacekZubielik/mosquitto
Browse files Browse the repository at this point in the history
build(mosquitto): 0.0.5
  • Loading branch information
JacekZubielik authored Aug 20, 2024
2 parents 730f62c + 6447de0 commit 4dc5afe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion charts/mosquitto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 2.0.18
description: Eclipse Mosquitto MQTT
name: mosquitto
version: 0.0.4
version: 0.0.5
type: application
keywords:
- mqtt
Expand Down
50 changes: 25 additions & 25 deletions charts/mosquitto/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,28 @@ spec:
runAsGroup: {{ .Values.securityContext.runAsGrop }}
fsGroup: {{ .Values.securityContext.fsGroup }}
{{- end }}
initContainers:
- name: init-config
image: busybox
command: ["/bin/cp", "-v", "/tmp/password_file", "/mosquitto/password_file"]
securityContext:
runAsNonRoot: false
privileged: true
volumeMounts:
- name: mosquitto-passwd
mountPath: /tmp/password_file
subPath: password_file
- name: mosquitto-data
mountPath: /mosquitto
- name: setup-permissions
image: busybox
command: ["/bin/chown", "-R", "1883:1883", "/mosquitto"]
securityContext:
runAsUser: 0
privileged: true
volumeMounts:
- name: mosquitto-data
mountPath: /mosquitto
# initContainers:
# - name: init-config
# image: busybox
# command: ["/bin/cp", "-v", "/tmp/password_file", "/mosquitto/password_file"]
# securityContext:
# runAsNonRoot: false
# privileged: true
# volumeMounts:
# - name: mosquitto-passwd
# mountPath: /tmp/password_file
# subPath: password_file
# - name: mosquitto-data
# mountPath: /mosquitto
# - name: setup-permissions
# image: busybox
# command: ["/bin/chown", "-R", "1883:1883", "/mosquitto"]
# securityContext:
# runAsUser: 0
# privileged: true
# volumeMounts:
# - name: mosquitto-data
# mountPath: /mosquitto
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down Expand Up @@ -107,9 +107,9 @@ spec:
- name: mosquitto-conf
mountPath: /mosquitto/config/mosquitto.conf
subPath: mosquitto.conf
- name: mosquitto-passwd
mountPath: /mosquitto/password_file
subPath: password_file
# - name: mosquitto-passwd
# mountPath: /mosquitto/password_file
# subPath: password_file
- name: mosquitto-ca-cert
mountPath: /mosquitto/config/certs/ca.crt
subPath: ca.crt
Expand Down

0 comments on commit 4dc5afe

Please sign in to comment.