mirror of
https://github.com/truenas/charts.git
synced 2026-04-23 18:10:06 +08:00
NAS-121592 / 23.10 / Add mumble to community train (#1149)
* mumble init commit * extend config * add cert * update readme * only use probes on ci * update probes * add metadata * one less zero * Add email attr * default '' -> empty false * Update library/ix-dev/community/mumble/templates/_mumble.tpl
This commit is contained in:
6
library/ix-dev/community/mumble/Chart.lock
Normal file
6
library/ix-dev/community/mumble/Chart.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.0.6
|
||||
digest: sha256:2f1f31c15fb7f92db141a66adbb8d23a8598727730050a3883a211763a4e5472
|
||||
generated: "2023-04-20T17:45:03.548828895+03:00"
|
||||
25
library/ix-dev/community/mumble/Chart.yaml
Normal file
25
library/ix-dev/community/mumble/Chart.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: mumble
|
||||
description: Mumble is a free, open source, low latency, high quality voice chat application.
|
||||
annotations:
|
||||
title: Mumble
|
||||
type: application
|
||||
version: 1.0.0
|
||||
apiVersion: v2
|
||||
appVersion: 'v1.4.230'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
maintainers:
|
||||
- name: truenas
|
||||
url: https://www.truenas.com/
|
||||
email: dev@ixsystems.com
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.0.6
|
||||
home: https://www.mumble.info/
|
||||
icon: https://github.com/mumble-voip/mumble/blob/master/icons/mumble.svg
|
||||
sources:
|
||||
- https://github.com/mumble-voip/mumble-docker
|
||||
- https://github.com/truenas/charts/tree/master/community/mumble
|
||||
- https://www.mumble.info/
|
||||
keywords:
|
||||
- voice
|
||||
16
library/ix-dev/community/mumble/README.md
Normal file
16
library/ix-dev/community/mumble/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Mumble
|
||||
|
||||
[Mumble](https://www.mumble.info/) is an Open Source, Low Latency, High Quality Voice Chat Home Downloads Documentation Blog Contribute About
|
||||
|
||||
> When application is installed, a container will be launched with **root** privileges.
|
||||
> This is required in order to apply the correct permissions to the `Mumble` directories.
|
||||
> Afterward, the `Mumble` container will run as a **non**-root user (`1000`, Cannot change).
|
||||
|
||||
You can change the server configuration by adding additional environment variables.
|
||||
Prefix the configuration variable with `MUMBLE_CONFIG_` and it will be added to the configuration file.
|
||||
View the [Mumble Configuration File](https://wiki.mumble.info/wiki/Murmur.ini) for more information.
|
||||
|
||||
For example you can set `autobanAttempts` like this:
|
||||
|
||||
- Name: `MUMBLE_CONFIG_autobanAttempts`
|
||||
- Value: `5`
|
||||
16
library/ix-dev/community/mumble/app-readme.md
Normal file
16
library/ix-dev/community/mumble/app-readme.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Mumble
|
||||
|
||||
[Mumble](https://www.mumble.info/) is an Open Source, Low Latency, High Quality Voice Chat Home Downloads Documentation Blog Contribute About
|
||||
|
||||
> When application is installed, a container will be launched with **root** privileges.
|
||||
> This is required in order to apply the correct permissions to the `Mumble` directories.
|
||||
> Afterward, the `Mumble` container will run as a **non**-root user (`1000`, Cannot change).
|
||||
|
||||
You can change the server configuration by adding additional environment variables.
|
||||
Prefix the configuration variable with `MUMBLE_CONFIG_` and it will be added to the configuration file.
|
||||
View the [Mumble Configuration File](https://wiki.mumble.info/wiki/Murmur.ini) for more information.
|
||||
|
||||
For example you can set `autobanAttempts` like this:
|
||||
|
||||
- Name: `MUMBLE_CONFIG_autobanAttempts`
|
||||
- Value: `5`
|
||||
BIN
library/ix-dev/community/mumble/charts/common-1.0.6.tgz
Normal file
BIN
library/ix-dev/community/mumble/charts/common-1.0.6.tgz
Normal file
Binary file not shown.
15
library/ix-dev/community/mumble/ci/basic-values.yaml
Normal file
15
library/ix-dev/community/mumble/ci/basic-values.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
mumbleConfig:
|
||||
serverPassword: supersecret
|
||||
superUserPassword: superuser
|
||||
iceSecretRead: letmelook
|
||||
iceSecretWrite: letmechangestuff
|
||||
welcomeText: Welcome to Mumble Test!
|
||||
|
||||
mumbleStorage:
|
||||
data:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
|
||||
# Enable probes on CI runs only,
|
||||
# so we can check if the container is ready
|
||||
ci: true
|
||||
104
library/ix-dev/community/mumble/ci/cert-values.yaml
Normal file
104
library/ix-dev/community/mumble/ci/cert-values.yaml
Normal file
@@ -0,0 +1,104 @@
|
||||
mumbleConfig:
|
||||
serverPassword: supersecret
|
||||
superUserPassword: superuser
|
||||
iceSecretRead: letmelook
|
||||
iceSecretWrite: letmechangestuff
|
||||
welcomeText: Welcome to Mumble Test!
|
||||
|
||||
mumbleStorage:
|
||||
data:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
|
||||
mumbleNetwork:
|
||||
certificateID: 1
|
||||
|
||||
ixCertificates:
|
||||
"1":
|
||||
certificate: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz
|
||||
ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD
|
||||
VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w
|
||||
HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMzU0WjBuMQswCQYDVQQDDAJhZDEL
|
||||
MAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxDTALBgNVBAcMBGFzZGYxDTALBgNV
|
||||
BAoMBGFkc2YxDTALBgNVBAsMBGFzZGYxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w
|
||||
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7+1xOHRQyOnQTHFcrdasX
|
||||
Zl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Ab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PdXmFD9rcwDwYDVR0T
|
||||
AQH/BAUwAwEB/zCBmAYDVR0jBIGQMIGNgBS5WH/S/fZ8SQ3KQjPy091eYUP2t6Fw
|
||||
pG4wbDEMMAoGA1UEAwwDYXNkMQswCQYDVQQGEwJVUzENMAsGA1UECAwEYXNkZjEL
|
||||
MAkGA1UEBwwCYWYxDTALBgNVBAoMBGFzZGYxDDAKBgNVBAsMA2FzZDEWMBQGCSqG
|
||||
SIb3DQEJARYHYUBhLmNvbYIDYFMXMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF
|
||||
BQcDAjAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAKEocOmVuWlr
|
||||
zegtKYMe8NhHIkFY9oVn5ym6RHNOJpPH4QF8XYC3Z5+iC5yGh4P/jVe/4I4SF6Ql
|
||||
PtofU0jNq5vzapt/y+m008eXqPQFmoUOvu+JavoRVcRx2LIP5AgBA1mF56CSREsX
|
||||
TkuJAA9IUQ8EjnmAoAeKINuPaKxGDuU8BGCMqr/qd564MKNf9XYL+Fb2rlkA0O2d
|
||||
2No34DQLgqSmST/LAvPM7Cbp6knYgnKmGr1nETCXasg1cueHLnWWTvps2HiPp2D/
|
||||
+Fq0uqcZLu4Mdo0CPs4e5sHRyldEnRSKh0DVLprq9zr/GMipmPLJUsT5Jed3sj0w
|
||||
M7Y3vwxshpo=
|
||||
-----END CERTIFICATE-----
|
||||
privatekey: |
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC7+1xOHRQyOnQT
|
||||
HFcrdasXZl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Abk
|
||||
H7oVFWC1P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI
|
||||
4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745z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uyD3rQilgSoAhKzkUc24o0PpXQurZ8YZPgbuXpbj5vPaOnCdBAoGACYc7
|
||||
wb3XS4wos3FxhUfcwJbM4b4VKeeHqzfu7pI6cU/3ydiHVitKcVe2bdw3qMPqI9Wc
|
||||
nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S
|
||||
dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P
|
||||
//L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY
|
||||
qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc
|
||||
3G15AKCXo7jjOUtHY01DCQ==
|
||||
-----END PRIVATE KEY-----
|
||||
|
||||
# Enable probes on CI runs only,
|
||||
# so we can check if the container is ready
|
||||
ci: true
|
||||
3
library/ix-dev/community/mumble/item.yaml
Normal file
3
library/ix-dev/community/mumble/item.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
icon_url: https://github.com/mumble-voip/mumble/blob/master/icons/mumble.svg
|
||||
categories:
|
||||
- voice
|
||||
8
library/ix-dev/community/mumble/metadata.yaml
Normal file
8
library/ix-dev/community/mumble/metadata.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
runAsContext:
|
||||
- userName: mumble
|
||||
groupName: mumble
|
||||
gid: 1000
|
||||
uid: 1000
|
||||
description: Mumble runs as non-root user.
|
||||
capabilities: []
|
||||
hostMounts: []
|
||||
189
library/ix-dev/community/mumble/questions.yaml
Normal file
189
library/ix-dev/community/mumble/questions.yaml
Normal file
@@ -0,0 +1,189 @@
|
||||
groups:
|
||||
- name: Mumble Configuration
|
||||
description: Configure Mumble
|
||||
- name: Network Configuration
|
||||
description: Configure Network for Mumble
|
||||
- name: Storage Configuration
|
||||
description: Configure Storage for Mumble
|
||||
- name: Resources Configuration
|
||||
description: Configure Resources for Mumble
|
||||
|
||||
questions:
|
||||
- variable: mumbleConfig
|
||||
label: ""
|
||||
group: Mumble Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: serverPassword
|
||||
label: Server Password
|
||||
description: The password for the Mumble Server.
|
||||
schema:
|
||||
type: string
|
||||
empty: false
|
||||
required: true
|
||||
private: true
|
||||
- variable: superUserPassword
|
||||
label: Super User Password
|
||||
description: The password for the Mumble Super User.
|
||||
schema:
|
||||
type: string
|
||||
empty: false
|
||||
required: true
|
||||
private: true
|
||||
- variable: iceSecretRead
|
||||
label: Ice Secret Read
|
||||
description: The Ice Secret for Read Operations.
|
||||
schema:
|
||||
type: string
|
||||
empty: false
|
||||
required: true
|
||||
private: true
|
||||
- variable: iceSecretWrite
|
||||
label: Ice Secret Write
|
||||
description: The Ice Secret for Write Operations.
|
||||
schema:
|
||||
type: string
|
||||
empty: false
|
||||
required: true
|
||||
private: true
|
||||
- variable: users
|
||||
label: Users
|
||||
description: The maximum number of users for the Mumble Server.
|
||||
schema:
|
||||
type: int
|
||||
default: 100
|
||||
required: true
|
||||
- variable: welcomeText
|
||||
label: Welcome Text
|
||||
description: The welcome text for the Mumble Server.
|
||||
schema:
|
||||
type: string
|
||||
default: Welcome to Mumble!
|
||||
required: true
|
||||
- variable: additionalEnvs
|
||||
label: Additional Environment Variables
|
||||
description: Configure additional environment variables for Mumble.
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: env
|
||||
label: Environment Variable
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: name
|
||||
label: Name
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: value
|
||||
label: Value
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
- variable: mumbleNetwork
|
||||
label: ""
|
||||
group: Network Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: serverPort
|
||||
label: Server Port
|
||||
description: The port for the Mumble Server (UDP & TCP).
|
||||
schema:
|
||||
type: int
|
||||
default: 30000
|
||||
min: 9000
|
||||
max: 65535
|
||||
required: true
|
||||
- variable: icePort
|
||||
label: Ice Port
|
||||
description: The port for the Ice.
|
||||
schema:
|
||||
type: int
|
||||
default: 30001
|
||||
min: 9000
|
||||
max: 65535
|
||||
required: true
|
||||
- variable: certificateID
|
||||
label: Certificate
|
||||
description: The certificate to use for Mumble
|
||||
schema:
|
||||
type: int
|
||||
"null": true
|
||||
$ref:
|
||||
- "definitions/certificate"
|
||||
|
||||
- variable: mumbleStorage
|
||||
label: ""
|
||||
group: Storage Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: data
|
||||
label: Mumble Data Storage
|
||||
description: The path to store Mumble Data.
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
description: |
|
||||
ixVolume: Is dataset created automatically by the system.</br>
|
||||
Host Path: Is a path that already exists on the system.
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
default: ixVolume
|
||||
enum:
|
||||
- value: hostPath
|
||||
description: Host Path (Path that already exists on the system)
|
||||
- value: ixVolume
|
||||
description: ixVolume (Dataset created automatically by the system)
|
||||
- variable: datasetName
|
||||
label: Dataset Name
|
||||
schema:
|
||||
type: string
|
||||
show_if: [["type", "=", "ixVolume"]]
|
||||
required: true
|
||||
hidden: true
|
||||
immutable: true
|
||||
default: data
|
||||
$ref:
|
||||
- "normalize/ixVolume"
|
||||
- variable: hostPath
|
||||
label: Host Path
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["type", "=", "hostPath"]]
|
||||
immutable: true
|
||||
required: true
|
||||
|
||||
- variable: resources
|
||||
label: Resources Configuration
|
||||
group: Resources Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: limits
|
||||
label: Limits
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: cpu
|
||||
label: CPU
|
||||
description: CPU limit for Mumble.
|
||||
schema:
|
||||
type: string
|
||||
default: 4000m
|
||||
required: true
|
||||
- variable: memory
|
||||
label: Memory
|
||||
description: Memory limit for Mumble.
|
||||
schema:
|
||||
type: string
|
||||
default: 8Gi
|
||||
required: true
|
||||
1
library/ix-dev/community/mumble/templates/NOTES.txt
Normal file
1
library/ix-dev/community/mumble/templates/NOTES.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "ix.v1.common.lib.chart.notes" $ }}
|
||||
25
library/ix-dev/community/mumble/templates/_configuration.tpl
Normal file
25
library/ix-dev/community/mumble/templates/_configuration.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
{{- define "mumble.configuration" -}}
|
||||
|
||||
{{/* Configmaps */}}
|
||||
configmap:
|
||||
mumble-config:
|
||||
enabled: true
|
||||
data:
|
||||
{{ if .Values.mumbleNetwork.certificateID }}
|
||||
MUMBLE_CONFIG_sslCert: /certs/public.crt
|
||||
MUMBLE_CONFIG_sslKey: /certs/private.key
|
||||
{{ end }}
|
||||
MUMBLE_CONFIG_database: /data/mumble-server.sqlite
|
||||
MUMBLE_CONFIG_port: {{ .Values.mumbleNetwork.serverPort | quote }}
|
||||
MUMBLE_CONFIG_welcometext: {{ .Values.mumbleConfig.welcomeText }}
|
||||
MUMBLE_CONFIG_users: {{ .Values.mumbleConfig.users | quote }}
|
||||
MUMBLE_CONFIG_ice: {{ printf "tcp -h 127.0.0.1 -p %v" .Values.mumbleNetwork.icePort }}
|
||||
secret:
|
||||
mumble-secret:
|
||||
enabled: true
|
||||
data:
|
||||
MUMBLE_SUPERUSER_PASSWORD: {{ .Values.mumbleConfig.superUserPassword | quote }}
|
||||
MUMBLE_CONFIG_serverpassword: {{ .Values.mumbleConfig.serverPassword | quote }}
|
||||
MUMBLE_CONFIG_icesecretread: {{ .Values.mumbleConfig.iceSecretRead }}
|
||||
MUMBLE_CONFIG_icesecretwrite: {{ .Values.mumbleConfig.iceSecretWrite }}
|
||||
{{- end -}}
|
||||
119
library/ix-dev/community/mumble/templates/_mumble.tpl
Normal file
119
library/ix-dev/community/mumble/templates/_mumble.tpl
Normal file
@@ -0,0 +1,119 @@
|
||||
{{- define "mumble.workload" -}}
|
||||
workload:
|
||||
mumble:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: false
|
||||
containers:
|
||||
mumble:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: image
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: mumble-config
|
||||
- secretRef:
|
||||
name: mumble-secret
|
||||
{{ with .Values.mumbleConfig.additionalEnvs }}
|
||||
envList:
|
||||
{{ range $env := . }}
|
||||
- name: {{ $env.name }}
|
||||
value: {{ $env.value }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
probes:
|
||||
# Probes are disabled because it fills the logs with
|
||||
# "connection attemps"
|
||||
liveness:
|
||||
enabled: {{ .Values.ci }}
|
||||
type: tcp
|
||||
port: "{{ .Values.mumbleNetwork.serverPort }}"
|
||||
readiness:
|
||||
enabled: {{ .Values.ci }}
|
||||
type: tcp
|
||||
port: "{{ .Values.mumbleNetwork.serverPort }}"
|
||||
startup:
|
||||
enabled: {{ .Values.ci }}
|
||||
type: tcp
|
||||
port: "{{ .Values.mumbleNetwork.serverPort }}"
|
||||
initContainers:
|
||||
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
||||
"UID" 1000
|
||||
"GID" 1000
|
||||
"mode" "check"
|
||||
"type" "install") | nindent 8 }}
|
||||
|
||||
{{/* Service */}}
|
||||
service:
|
||||
mumble:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: NodePort
|
||||
targetSelector: mumble
|
||||
ports:
|
||||
tcp:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.mumbleNetwork.serverPort }}
|
||||
nodePort: {{ .Values.mumbleNetwork.serverPort }}
|
||||
targetSelector: mumble
|
||||
udp:
|
||||
enabled: true
|
||||
port: {{ .Values.mumbleNetwork.serverPort }}
|
||||
nodePort: {{ .Values.mumbleNetwork.serverPort }}
|
||||
protocol: udp
|
||||
targetSelector: mumble
|
||||
ice:
|
||||
enabled: true
|
||||
type: NodePort
|
||||
targetSelector: mumble
|
||||
ports:
|
||||
ice:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.mumbleNetwork.icePort }}
|
||||
nodePort: {{ .Values.mumbleNetwork.icePort }}
|
||||
targetSelector: mumble
|
||||
|
||||
{{/* Persistence */}}
|
||||
persistence:
|
||||
data:
|
||||
enabled: true
|
||||
type: {{ .Values.mumbleStorage.data.type }}
|
||||
datasetName: {{ .Values.mumbleStorage.data.datasetName | default "" }}
|
||||
hostPath: {{ .Values.mumbleStorage.data.hostPath | default "" }}
|
||||
targetSelector:
|
||||
mumble:
|
||||
mumble:
|
||||
mountPath: /data
|
||||
01-permissions:
|
||||
mountPath: /mnt/directories/data
|
||||
|
||||
{{- if .Values.mumbleNetwork.certificateID }}
|
||||
cert:
|
||||
enabled: true
|
||||
type: secret
|
||||
objectName: mumble-cert
|
||||
defaultMode: "0600"
|
||||
items:
|
||||
- key: tls.key
|
||||
path: private.key
|
||||
- key: tls.crt
|
||||
path: public.crt
|
||||
targetSelector:
|
||||
mumble:
|
||||
mumble:
|
||||
mountPath: /certs
|
||||
readOnly: true
|
||||
|
||||
scaleCertificate:
|
||||
mumble-cert:
|
||||
enabled: true
|
||||
id: {{ .Values.mumbleNetwork.certificateID }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
7
library/ix-dev/community/mumble/templates/common.yaml
Normal file
7
library/ix-dev/community/mumble/templates/common.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
{{- include "ix.v1.common.loader.init" . -}}
|
||||
|
||||
{{/* Merge the templates with Values */}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "mumble.configuration" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "mumble.workload" $ | fromYaml) -}}
|
||||
|
||||
{{- include "ix.v1.common.loader.apply" . -}}
|
||||
1
library/ix-dev/community/mumble/upgrade_info.json
Normal file
1
library/ix-dev/community/mumble/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "values.yaml", "keys": ["image"]}
|
||||
31
library/ix-dev/community/mumble/upgrade_strategy
Executable file
31
library/ix-dev/community/mumble/upgrade_strategy
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
|
||||
from catalog_update.upgrade_strategy import semantic_versioning
|
||||
|
||||
|
||||
RE_STABLE_VERSION = re.compile(r'v[0-9]\.[0-9]\.[0-9]+')
|
||||
|
||||
|
||||
def newer_mapping(image_tags):
|
||||
key = list(image_tags.keys())[0]
|
||||
tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
|
||||
version = semantic_versioning(list(tags))
|
||||
if not version:
|
||||
return {}
|
||||
|
||||
return {
|
||||
'tags': {key: tags[version]},
|
||||
'app_version': version,
|
||||
}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
versions_json = json.loads(sys.stdin.read())
|
||||
except ValueError:
|
||||
raise ValueError('Invalid json specified')
|
||||
|
||||
print(json.dumps(newer_mapping(versions_json)))
|
||||
29
library/ix-dev/community/mumble/values.yaml
Normal file
29
library/ix-dev/community/mumble/values.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
image:
|
||||
repository: mumblevoip/mumble-server
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v1.4.230
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 4000m
|
||||
memory: 8Gi
|
||||
|
||||
ci: false
|
||||
|
||||
mumbleConfig:
|
||||
serverPassword: ''
|
||||
superUserPassword: ''
|
||||
iceSecretRead: ''
|
||||
iceSecretWrite: ''
|
||||
users: 100
|
||||
welcomeText: Welcome to Mumble!
|
||||
additionalEnvs: []
|
||||
mumbleNetwork:
|
||||
serverPort: 30000
|
||||
icePort: 30001
|
||||
certificateID: 0
|
||||
mumbleStorage:
|
||||
data:
|
||||
type: ixVolume
|
||||
hostPath: ''
|
||||
datasetName: data
|
||||
Reference in New Issue
Block a user