Skip to content

Commit

Permalink
Merge pull request #4447 from tyriis/feature/playit
Browse files Browse the repository at this point in the history
fix(playit): re-structure secret
  • Loading branch information
tyriis authored Feb 1, 2025
2 parents 246cd05 + 6395334 commit 1381908
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: &name playit
name: &name playit-env
spec:
refreshInterval: 1m
secretStoreRef:
Expand All @@ -15,15 +15,7 @@ spec:
template:
engineVersion: v2
data:
playit.toml: |
api_url = "https://api.playit.cloud/agent"
ping_target_addresses = []
control_address = "control.playit.gg"
refresh_from_api = true
api_refresh_rate = 5000
ping_interval = 5000
secret_key = "{{ .PLAYIT_SECRET_KEY }}"
mappings = []
SECRET_KEY: "{{ .PLAYIT_SECRET_KEY }}"
dataFrom:
- extract:
key: infra/techtales/network/playit
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
readOnlyRootFilesystem: true
capabilities:
drop: [ALL]
envFrom:
- secretRef:
name: playit-env
env:
TZ: ${SETTING_TZ}
image:
Expand All @@ -69,12 +72,3 @@ spec:
enabled: false
startup:
enabled: false

persistence:
playit-toml:
type: secret
name: playit
globalMounts:
- path: /config/playit.toml
subPath: playit.toml
readOnly: false

0 comments on commit 1381908

Please sign in to comment.