mirror of
https://github.com/aramperes/ts-activity.git
synced 2025-09-09 22:38:30 -04:00
Refactoring & allow Discord avatar, custom server ID
This commit is contained in:
parent
71ed01df58
commit
9fbbd2cd22
4 changed files with 99 additions and 39 deletions
|
@ -32,8 +32,16 @@ spec:
|
|||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
env:
|
||||
{{- with .Values.config.discordUsername }}
|
||||
- name: TS_DISCORD_USERNAME
|
||||
value: "{{ .Values.config.discordUsername | default "Jeff" }}"
|
||||
value: {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- with .Values.config.discordAvatar }}
|
||||
- name: TS_DISCORD_AVATAR
|
||||
value: {{ . | quote }}
|
||||
{{- end }}
|
||||
- name: TS_QUERY_SERVER_ID
|
||||
value: {{ .Values.config.serverQueryId | quote }}
|
||||
- name: TS_QUERY_ADDR
|
||||
value: "{{ .Values.config.serverQueryAddr | required "must provide serverQueryAddr" }}"
|
||||
- name: TS_QUERY_USER
|
||||
|
|
|
@ -5,19 +5,23 @@
|
|||
image:
|
||||
repository: aramperes/ts-activity
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart version.
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
|
||||
config:
|
||||
# Discord username displayed in webhook messages.
|
||||
# Defaults to 'Jeff'
|
||||
discordUsername: ""
|
||||
# Discord avatar displayed in webhook messages.
|
||||
discordAvatar: ""
|
||||
# Address to plain ServerQuery. Usually <ts_host>:10011
|
||||
serverQueryAddr: ""
|
||||
# Secret containing 'username' and 'password' for ServerQuery.
|
||||
serverQuerySecret: ""
|
||||
# Secret containing 'discord' with the Webhook URL.
|
||||
webhookSecret: ""
|
||||
# TeamSpeak virtual server ID.
|
||||
serverQueryId: 1
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue