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(ring-mqtt): mount #4434

Merged
merged 1 commit into from
Feb 1, 2025
Merged

fix(ring-mqtt): mount #4434

merged 1 commit into from
Feb 1, 2025

Conversation

tyriis
Copy link
Owner

@tyriis tyriis commented Feb 1, 2025

No description provided.

Copy link

sonarqubecloud bot commented Feb 1, 2025

@tyriis-automation
Copy link
Contributor

--- HelmRelease: home-automation/ring-mqtt Deployment: home-automation/ring-mqtt

+++ HelmRelease: home-automation/ring-mqtt Deployment: home-automation/ring-mqtt

@@ -73,12 +73,20 @@

           initialDelaySeconds: 0
           periodSeconds: 10
           tcpSocket:
             port: 8554
           timeoutSeconds: 1
         volumeMounts:
+        - mountPath: /data/config.json
+          name: credentials
+          readOnly: true
+          subPath: config.json
+        - mountPath: /data/ring-state.json
+          name: credentials
+          readOnly: true
+          subPath: ring-state.json
         - mountPath: /data
           name: data
       volumes:
       - name: credentials
         secret:
           secretName: ring-mqtt-config

@tyriis-automation
Copy link
Contributor

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 3 0 0.01s
✅ REPOSITORY gitleaks yes no 2.94s
✅ YAML prettier 3 0 0.4s
✅ YAML yamllint 3 0 0.39s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@tyriis-automation
Copy link
Contributor

--- kubernetes/talos-flux/apps/home-automation/ring-mqtt/app Kustomization: flux-system/ring-mqtt ExternalSecret: home-automation/ring-mqtt-config

+++ kubernetes/talos-flux/apps/home-automation/ring-mqtt/app Kustomization: flux-system/ring-mqtt ExternalSecret: home-automation/ring-mqtt-config

@@ -18,10 +18,10 @@

     name: vault-backend
   target:
     creationPolicy: Owner
     name: ring-mqtt-config
     template:
       data:
-        config.json: '{{ .config.json }}'
-        ring-state.json: '{{ .ring-state.json }}'
+        config.json: '{{ .CONFIG_JSON }}'
+        ring-state.json: '{{ .RING_STATE_JSON }}'
       engineVersion: v2
 
--- kubernetes/talos-flux/apps/home-automation/ring-mqtt/app Kustomization: flux-system/ring-mqtt HelmRelease: home-automation/ring-mqtt

+++ kubernetes/talos-flux/apps/home-automation/ring-mqtt/app Kustomization: flux-system/ring-mqtt HelmRelease: home-automation/ring-mqtt

@@ -63,21 +63,19 @@

           securityContext:
             runAsGroup: 65534
             runAsNonRoot: true
             runAsUser: 65534
     persistence:
       credentials:
-        advancedMounts:
-          ring-mqtt:
-            config:
-            - path: /data/config.json
-              readOnly: true
-              subPath: config.json
-            - path: /data/ring-state.json
-              readOnly: true
-              subPath: ring-state.json
+        globalMounts:
+        - path: /data/config.json
+          readOnly: true
+          subPath: config.json
+        - path: /data/ring-state.json
+          readOnly: true
+          subPath: ring-state.json
         name: ring-mqtt-config
         type: secret
       data:
         globalMounts:
         - path: /data
         type: emptyDir
--- kubernetes/talos-flux/flux Kustomization: flux-system/flux-sync ConfigMap: flux-system/cluster-settings

+++ kubernetes/talos-flux/flux Kustomization: flux-system/flux-sync ConfigMap: flux-system/cluster-settings

@@ -8,12 +8,13 @@

   SETTING_CILIUM_SYNCTHING_ADDR: 192.168.1.84
   SETTING_CILIUM_TRAEFIK_ADDR: 192.168.1.80
   SETTING_CILIUM_UNIFI_ADDR: 192.168.1.81
   SETTING_CLUSTERNAME: talos-flux
   SETTING_GATEWAY: 192.168.1.1
   SETTING_TZ: Europe/Vienna
+  SETTING_VOLSYNC_BACKUP_SCHEDULE_ZIGBEE2MQTT: 0 * * * *
 kind: ConfigMap
 metadata:
   labels:
     kustomize.toolkit.fluxcd.io/name: flux-sync
     kustomize.toolkit.fluxcd.io/namespace: flux-system
     kustomize.toolkit.fluxcd.io/prune: disabled

@tyriis tyriis merged commit feee53f into main Feb 1, 2025
16 checks passed
@tyriis tyriis deleted the feature/ring-mqtt branch February 1, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant