tyriis / home-ops

IaC for my HomeLab kubernetes cluster resources with Flux
https://github.com/tyriis/home-ops/blob/main/README.md
38 stars 2 forks source link

fix(minecraft): fix velocity secret config #3560

Closed jazzlyn closed 2 months ago

tyriis-automation[bot] commented 2 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 4 0 0.02s
✅ REPOSITORY gitleaks yes no 2.69s
✅ YAML prettier 2 0 0.53s
✅ YAML yamllint 2 0 0.33s

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[bot] commented 2 months ago

--- kubernetes/talos-flux/apps/gaming/minecraft-java/velocity-proxy Kustomization: flux-system/minecraft-velocity-proxy HelmRelease: gaming/minecraft-velocity-proxy

+++ kubernetes/talos-flux/apps/gaming/minecraft-java/velocity-proxy Kustomization: flux-system/minecraft-velocity-proxy HelmRelease: gaming/minecraft-velocity-proxy

@@ -98,12 +98,15 @@

     persistence:
       config:
         globalMounts:
         - path: /config/velocity.toml
           readOnly: true
           subPath: velocity.toml
+        - path: /config/forwarding.secret
+          readOnly: true
+          subPath: forwarding.secret
         name: minecraft-velocity-proxy-config
         type: configMap
       data:
         existingClaim: minecraft-velocity-proxy-data
         globalMounts:
         - path: /server
--- kubernetes/talos-flux/apps/gaming/minecraft-java/velocity-proxy Kustomization: flux-system/minecraft-velocity-proxy ConfigMap: gaming/minecraft-velocity-proxy-config

+++ kubernetes/talos-flux/apps/gaming/minecraft-java/velocity-proxy Kustomization: flux-system/minecraft-velocity-proxy ConfigMap: gaming/minecraft-velocity-proxy-config

@@ -1,9 +1,11 @@

 ---
 apiVersion: v1
 data:
+  forwarding.secret: |
+    TEST
   velocity.toml: |
     # Config version. Do not change this
     config-version = "2.7"

     # What port should the proxy be bound to? By default, we'll bind to all addresses on port 25565.
     bind = "0.0.0.0:25565"
tyriis-automation[bot] commented 2 months ago

--- HelmRelease: gaming/minecraft-velocity-proxy Deployment: gaming/minecraft-velocity-proxy

+++ HelmRelease: gaming/minecraft-velocity-proxy Deployment: gaming/minecraft-velocity-proxy

@@ -108,12 +108,16 @@

           timeoutSeconds: 1
         volumeMounts:
         - mountPath: /config/velocity.toml
           name: config
           readOnly: true
           subPath: velocity.toml
+        - mountPath: /config/forwarding.secret
+          name: config
+          readOnly: true
+          subPath: forwarding.secret
         - mountPath: /server
           name: data
         - mountPath: /tmp
           name: tmp
       volumes:
       - configMap: