Skip to content

Commit

Permalink
feat(velocity): add whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzlyn committed Feb 2, 2025
1 parent 9e4c0ad commit f69b922
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: &name minecraft-public-velocity-proxy-whitelist
spec:
refreshInterval: 1m
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: *name
creationPolicy: Owner
template:
engineVersion: v2
data:
whitelist.txt: "{{ .WHITELIST_TXT }}"
dataFrom:
- extract:
key: infra/techtales/gaming-public/minecraft-java
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,12 @@ spec:
- path: /config/forwarding.secret
subPath: forwarding.secret
readOnly: true
whitelist:
type: secret
name: minecraft-public-velocity-proxy-whitelist
advancedMounts:
velocity:
app:
- path: /server/plugins/simplewhitelist/whitelist.txt
subPath: whitelist.txt
readOnly: true
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./persistent-volume-claim.yaml
- ./helm-release.yaml
- external-secret.yaml
- persistent-volume-claim.yaml
- helm-release.yaml
configMapGenerator:
- name: minecraft-public-velocity-proxy-config
files:
Expand Down

0 comments on commit f69b922

Please sign in to comment.