Publish new changes in catalog

This commit is contained in:
sonicaj
2024-02-02 10:01:06 +00:00
parent 9023c908dc
commit 726d011ae5
87 changed files with 101 additions and 54 deletions

View File

@@ -4,7 +4,7 @@ description: Home Assistant is an open source home automation that puts local co
annotations:
title: Home Assistant
type: application
version: 2.0.5
version: 2.0.6
apiVersion: v2
appVersion: 2024.1.6
kubeVersion: '>=1.16.0-0'

View File

@@ -71,7 +71,7 @@ secret:
#!/bin/sh
config="/config/configuration.yaml"
default="/default/init"
// Attemp to get read/write access
# Attemp to get read/write access
chmod +rw "$config" || echo "Failed to set permissions on [$config]"
if [ ! -f "$config" ]; then
echo "File [$config] does NOT exist. Creating..."

View File

@@ -1,11 +1,15 @@
{{- define "home-assistant.portal" -}}
{{- $port := .Values.haNetwork.webPort -}}
{{- if .Values.haNetwork.hostNetwork -}}
{{- $port = 8123 -}}
{{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: portal
data:
port: {{ .Values.haNetwork.webPort | quote }}
port: {{ $port | quote }}
path: "/"
protocol: "http"
host: $node_ip

View File

@@ -3,7 +3,7 @@ description: Real-time performance monitoring, done right!
annotations:
title: Netdata
type: application
version: 1.0.39
version: 1.0.40
apiVersion: v2
appVersion: v1.44.1
kubeVersion: '>=1.16.0-0'

View File

@@ -2,7 +2,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "netdata.name" . }}
name: {{ template "netdata.name" . }}-netdata
labels:
app: {{ template "netdata.name" . }}
chart: {{ template "netdata.chart" . }}

View File

@@ -3,7 +3,7 @@ description: Invidious is an alternative front-end to YouTube
annotations:
title: Invidious
type: application
version: 1.0.2
version: 1.0.3
apiVersion: v2
appVersion: latest
kubeVersion: '>=1.16.0-0'

View File

@@ -6,6 +6,10 @@ gitImage:
repository: bitnami/git
pullPolicy: IfNotPresent
tag: latest
yqImage:
pullPolicy: IfNotPresent
repository: mikefarah/yq
tag: 4.40.5
resources:
limits:
@@ -56,6 +60,6 @@ notes:
{{- $_ := unset .Values "invidiousDbHost" }}
Additional configuration can be specified
by editing the file `/config/config.yaml` (see [example](https://github.com/iv-org/invidious/blob/master/config/config.example.yml))
- Via [environment variables](https://github.com/iv-org/invidious/pull/1702)
- By editing the file `/config/config.yaml` (see [example](https://github.com/iv-org/invidious/blob/master/config/config.example.yml))
Note that some configuration options are updated automatically by the chart on each start.

View File

@@ -36,27 +36,36 @@ secret:
PGHOST: {{ $dbHost }}
PGPORT: "5432"
{{/* Do not quote: bools, numbers, json */}}
{{- $configOpts := list
(dict "path" "check_tables" "value" "true")
(dict "path" "database_url" "value" ($dbURL | quote))
(dict "path" "database.user" "value" ($dbUser | quote))
(dict "path" "database.password" "value" ($dbPass | quote))
(dict "path" "database.dbname" "value" ($dbName | quote))
(dict "path" "database.host" "value" ($dbHost | quote))
(dict "path" "database.port" "value" "5432")
(dict "path" "hmac_key" "value" ($hmacKey | quote))
(dict "path" "host_binding" "value" ("0.0.0.0" | quote))
(dict "path" "port" "value" .Values.invidiousNetwork.webPort)
(dict "path" "admins" "value" (.Values.invidiousConfig.admins | toJson))
(dict "path" "registration_enabled" "value" .Values.invidiousConfig.registrationEnabled)
(dict "path" "login_enabled" "value" .Values.invidiousConfig.loginEnabled)
(dict "path" "captcha_enabled" "value" .Values.invidiousConfig.captchaEnabled)
}}
invidious-creds:
enabled: true
data:
# Source config
INVIDIOUS_CONFIG_FILE: /config/config.yaml
# See https://github.com/iv-org/invidious/pull/1702
# Override config
INVIDIOUS_HMAC_KEY: {{ $hmacKey }}
INVIDIOUS_CHECK_TABLES: "true"
INVIDIOUS_DATABASE_URL: {{ $dbURL }}
INVIDIOUS_DB_USER: {{ $dbUser }}
INVIDIOUS_DB_PASSWORD: {{ $dbPass }}
INVIDIOUS_DB_DBNAME: {{ $dbName }}
INVIDIOUS_DB_HOST: {{ $dbHost }}
INVIDIOUS_DB_PORT: "5432"
INVIDIOUS_HOST_BINDING: "0.0.0.0"
INVIDIOUS_PORT: {{ .Values.invidiousNetwork.webPort | quote }}
# Add some easy to use values in UI
INVIDIOUS_ADMINS: {{ .Values.invidiousConfig.admins | toJson | quote }}
INVIDIOUS_REGISTRATION_ENABLED: {{ .Values.invidiousConfig.registrationEnabled | quote }}
INVIDIOUS_LOGIN_ENABLED: {{ .Values.invidiousConfig.loginEnabled | quote }}
INVIDIOUS_CAPTCHA_ENABLED: {{ .Values.invidiousConfig.captchaEnabled | quote }}
config.sh: |
#!/bin/sh
config="/config/config.yaml"
echo "Updating Invidious Config..."
{{- range $item := $configOpts }}
echo "Updating {{ $item.path }} to {{ $item.value }}"
yq -i '.{{ $item.path }} = {{ $item.value }}' "$config"
{{- end }}
cat "$config"
echo "Config already exists, skipping."
{{- end -}}

View File

@@ -14,9 +14,8 @@ workload:
securityContext:
runAsUser: 1000
runAsGroup: 1000
envFrom:
- secretRef:
name: invidious-creds
env:
INVIDIOUS_CONFIG_FILE: /config/config.yaml
{{ with .Values.invidiousConfig.additionalEnvs }}
envList:
{{ range $env := . }}
@@ -100,9 +99,6 @@ workload:
securityContext:
runAsUser: 1000
runAsGroup: 1000
envFrom:
- secretRef:
name: postgres-creds
command:
- /bin/sh
- -c
@@ -114,4 +110,13 @@ workload:
exit 0
fi
echo "Config already exists, skipping."
05-update-config:
enabled: true
type: init
imageSelector: yqImage
securityContext:
runAsUser: 1000
runAsGroup: 1000
readOnlyRootFilesystem: false
command: /setup/config.sh
{{- end -}}

View File

@@ -9,6 +9,8 @@ persistence:
mountPath: /config
04-init-config:
mountPath: /config
05-update-config:
mountPath: /config
{{- if and (eq .Values.invidiousStorage.config.type "ixVolume")
(not (.Values.invidiousStorage.config.ixVolumeConfig | default dict).aclEnable) }}
01-permissions:
@@ -30,6 +32,16 @@ persistence:
invidious:
invidious:
mountPath: /tmp
config-script:
enabled: true
type: secret
objectName: invidious-creds
defaultMode: "0550"
targetSelector:
invidious:
05-update-config:
mountPath: /setup/config.sh
subPath: config.sh
{{- range $idx, $storage := .Values.invidiousStorage.additionalStorages }}
{{ printf "invidious-%v:" (int $idx) }}

View File

@@ -1,5 +1,13 @@
{{- include "ix.v1.common.loader.init" . -}}
{{- if not .Values.yqImage -}}
{{- $_ := set .Values "yqImage" (dict
"repository" "mikefarah/yq"
"tag" "4.40.5"
"pullPolicy" "IfNotPresent"
) -}}
{{- end -}}
{{/* Merge the templates with Values */}}
{{- $_ := mustMergeOverwrite .Values (include "invidious.configuration" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "invidious.service" $ | fromYaml) -}}

View File

@@ -3,9 +3,9 @@ description: netboot.xyz lets you PXE boot various operating system installers o
annotations:
title: netbootxyz
type: application
version: 1.0.1
version: 1.0.2
apiVersion: v2
appVersion: 2.0.76
appVersion: 0.7.0.4
kubeVersion: '>=1.16.0-0'
maintainers:
- name: truenas

View File

@@ -5,6 +5,6 @@ netbootStorage:
type: pvc
netbootNetwork:
hostNetwork: true
tftpPort: 69
webHttpPort: 3000
webAssetsPort: 8080
tftpPort: 31009
webHttpPort: 31010
webAssetsPort: 31011

View File

@@ -1,7 +1,7 @@
image:
repository: netbootxyz/netbootxyz
pullPolicy: IfNotPresent
tag: 0.7.0-nbxyz2
tag: 0.7.0-nbxyz4
resources:
limits:
@@ -15,9 +15,9 @@ netbootConfig:
netbootNetwork:
# TFTP only works with hostNetwork: true
hostNetwork: true
tftpPort: 69
webHttpPort: 3000
webAssetsPort: 8080
tftpPort: 31009
webHttpPort: 31010
webAssetsPort: 31011
netbootStorage:
config:

View File

@@ -3,7 +3,7 @@ description: Palworld is a multiplayer, open-world survival crafting game where
annotations:
title: Palworld
type: application
version: 1.0.3
version: 1.0.4
apiVersion: v2
appVersion: palworld
kubeVersion: '>=1.16.0-0'

View File

@@ -20,12 +20,12 @@ palworldConfig:
keep: 3
iniKeys:
- key: PlayerDamageRateAttack
value: 1.000000
value: "1.000000"
- key: DropItemMaxNum
value: 4000
value: "4000"
- key: Region
value: ""
- key: PalEggDefaultHatchingTime
value: 72.450000
value: "72.450000"
- key: bEnablePlayerToPlayerDamage
value: true
value: "True"

View File

@@ -125,15 +125,20 @@ workload:
set_ini_value "AdminPassword" {{ .Values.palworldConfig.adminPassword | squote }} true false
{{- range $item := .Values.palworldConfig.iniKeys }}
{{- if mustHas (kindOf $item.value) (list "int" "int64" "float64") }}
echo "Key {{ $item.key }} is a {{ kindOf $item.value }}, setting without quotes..."
set_ini_value "{{ $item.key }}" {{ $item.value }}
{{- else if or (eq ((toString $item.value) | lower) "true") (eq ((toString $item.value) | lower) "false") }}
echo "Key {{ $item.key }} is a boolean, setting without quotes..."
set_ini_value "{{ $item.key }}" {{ (toString $item.value) | camelcase }}
{{- $k := $item.key -}}
{{- $v := $item.value | toString -}}
{{- $numRegex := "^[0-9]+([.][0-9]+)?$" -}}
{{- $boolRegex := "^(true|false)$" -}}
{{- if (mustRegexMatch $numRegex $v) }}
echo "Key [{{ $k }}] is a number, setting without quotes..."
set_ini_value "{{ $k }}" {{ $v }}
{{- else if (mustRegexMatch $boolRegex ($v | lower)) }}
echo "Key [{{ $k }}] is a boolean, setting without quotes..."
set_ini_value "{{ $k }}" {{ (toString $v) | camelcase }}
{{- else }}
echo "Key {{ $item.key }} is a {{ kindOf $item.value }}, setting with quotes..."
set_ini_value "{{ $item.key }}" {{ $item.value | quote }} true
echo "Key [{{ $k }}] is a string, setting with quotes..."
set_ini_value "{{ $k }}" {{ $v | quote }} true
{{- end }}
{{- end }}