Publish new changes in catalog

This commit is contained in:
sonicaj
2024-01-16 12:33:19 +00:00
parent ca03bc5181
commit 11adb79c1a
44 changed files with 622 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
annotations:
title: Nextcloud
type: application
version: 1.6.55
version: 1.6.56
apiVersion: v2
appVersion: 28.0.1
kubeVersion: '>=1.16.0-0'

View File

@@ -83,7 +83,7 @@ spec: {{ include "common.deployment.common_spec" . | nindent 2 }}
{{ if eq (include "nginx.certAvailable" .) "true" }}
{{ $envList = mustAppend $envList (dict "name" "APACHE_DISABLE_REWRITE_IP" "value" "1") }}
{{ if and .Values.nextcloud.host .Values.service.nodePort }}
{{ if .Values.nginxConfig.use443 }}
{{ if .Values.nginxConfig.useDifferentAccessPort }}
{{ $envList = mustAppend $envList (dict "name" "OVERWRITEHOST" "value" .Values.nextcloud.host) }}
{{ else }}
{{ $envList = mustAppend $envList (dict "name" "OVERWRITEHOST" "value" (printf "%v:%v" .Values.nextcloud.host .Values.service.nodePort)) }}

View File

@@ -0,0 +1,26 @@
name: organizr
description: Organizr is a HTPC/Homelab Services Organizer - Written in PHP
annotations:
title: Organizr
type: application
version: 1.0.0
apiVersion: v2
appVersion: latest
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.2.8
home: https://github.com/causefx/Organizr
icon: https://media.sys.truenas.net/apps/organizr/icons/icon.png
sources:
- https://hub.docker.com/r/organizr/organizr
- https://github.com/truenas/charts/tree/master/library/ix-dev/community/organizr
- https://github.com/causefx/Organizr
keywords:
- organizr
- dashboard

View File

@@ -0,0 +1,3 @@
# Organizr
[Organizr](https://docs.organizr.app/) is a HTPC/Homelab Services Organizer - Written in PHP

View File

@@ -0,0 +1,3 @@
# Organizr
[Organizr](https://docs.organizr.app/) is a HTPC/Homelab Services Organizer - Written in PHP

View File

@@ -0,0 +1,7 @@
organizrID:
user: 568
group: 568
organizrStorage:
config:
type: pvc

View File

@@ -0,0 +1,8 @@
organizrStorage:
config:
type: pvc
additionalStorages:
- type: pvc
mountPath: /data1
- type: pvc
mountPath: /data2

View File

@@ -0,0 +1,26 @@
image:
repository: organizr/organizr
pullPolicy: IfNotPresent
tag: latest
resources:
limits:
cpu: 4000m
memory: 8Gi
organizrConfig:
additionalEnvs: []
organizrNetwork:
webPort: 31013
organizrID:
user: 568
group: 568
organizrStorage:
config:
type: ixVolume
ixVolumeConfig:
datasetName: config
additionalStorages: []

View File

@@ -0,0 +1,18 @@
runAsContext:
- userName: root
groupName: root
gid: 0
uid: 0
description: Organizr runs as root user.
capabilities:
- name: CHOWN
description: Organizr is able to chown files.
- name: FOWNER
description: Organizr is able to bypass file ownership checks for it's sub-processes.
- name: DAC_OVERRIDE
description: Organizr is able to bypass file permission checks for it's sub-processes.
- name: SETGID
description: Organizr is able to switch group for sub-processes.
- name: SETUID
description: Organizr is able to switch user for sub-processes.
hostMounts: []

View File

@@ -0,0 +1,370 @@
groups:
- name: Organizr Configuration
description: Configure Organizr
- name: User and Group Configuration
description: Configure User and Group for Organizr
- name: Network Configuration
description: Configure Network for Organizr
- name: Storage Configuration
description: Configure Storage for Organizr
- name: Resources Configuration
description: Configure Resources for Organizr
portals:
web_portal:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
path: "$kubernetes-resource_configmap_portal_path"
questions:
- variable: TZ
group: Organizr Configuration
label: Timezone
schema:
type: string
default: Etc/UTC
required: true
$ref:
- definitions/timezone
- variable: organizrConfig
label: ""
group: Organizr Configuration
schema:
type: dict
attrs:
- variable: additionalEnvs
label: Additional Environment Variables
description: Configure additional environment variables for Organizr.
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: organizrNetwork
label: ""
group: Network Configuration
schema:
type: dict
attrs:
- variable: webPort
label: Web Port
description: The port for the Organizr Web UI.
schema:
type: int
default: 31013
min: 9000
max: 65535
required: true
- variable: organizrID
label: ""
group: User and Group Configuration
schema:
type: dict
attrs:
- variable: user
label: User ID
description: The user id that Organizr files will be owned by.
schema:
type: int
min: 568
default: 568
required: true
- variable: group
label: Group ID
description: The group id that Organizr files will be owned by.
schema:
type: int
min: 568
default: 568
required: true
- variable: organizrStorage
label: ""
group: Storage Configuration
schema:
type: dict
attrs:
- variable: config
label: Organizr Config Storage
description: The path to store Organizr Configuration.
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
immutable: 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: ixVolumeConfig
label: ixVolume Configuration
description: The configuration for the ixVolume dataset.
schema:
type: dict
show_if: [["type", "=", "ixVolume"]]
$ref:
- "normalize/ixVolume"
attrs:
- variable: aclEnable
label: Enable ACL
description: Enable ACL for the dataset.
schema:
type: boolean
default: false
- variable: datasetName
label: Dataset Name
description: The name of the dataset to use for storage.
schema:
type: string
required: true
immutable: true
hidden: true
default: "config"
- variable: aclEntries
label: ACL Configuration
schema:
type: dict
show_if: [["aclEnable", "=", true]]
attrs: []
- variable: hostPathConfig
label: Host Path Configuration
schema:
type: dict
show_if: [["type", "=", "hostPath"]]
attrs:
- variable: aclEnable
label: Enable ACL
description: Enable ACL for the dataset.
schema:
type: boolean
default: false
- variable: acl
label: ACL Configuration
schema:
type: dict
show_if: [["aclEnable", "=", true]]
attrs: []
$ref:
- "normalize/acl"
- variable: hostPath
label: Host Path
description: The host path to use for storage.
schema:
type: hostpath
show_if: [["aclEnable", "=", false]]
required: true
- variable: additionalStorages
label: Additional Storage
description: Additional storage for Organizr.
schema:
type: list
default: []
items:
- variable: storageEntry
label: Storage Entry
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.</br>
SMB Share: Is a SMB share that is mounted to a persistent volume claim.
schema:
type: string
required: true
default: "ixVolume"
immutable: true
enum:
- value: "hostPath"
description: Host Path (Path that already exists on the system)
- value: "ixVolume"
description: ixVolume (Dataset created automatically by the system)
- value: "smb-pv-pvc"
description: SMB Share (Mounts a persistent volume claim to a SMB share)
- variable: readOnly
label: Read Only
description: Mount the volume as read only.
schema:
type: boolean
default: false
- variable: mountPath
label: Mount Path
description: The path inside the container to mount the storage.
schema:
type: path
required: true
- variable: hostPathConfig
label: Host Path Configuration
schema:
type: dict
show_if: [["type", "=", "hostPath"]]
attrs:
- variable: aclEnable
label: Enable ACL
description: Enable ACL for the dataset.
schema:
type: boolean
default: false
- variable: acl
label: ACL Configuration
schema:
type: dict
show_if: [["aclEnable", "=", true]]
attrs: []
$ref:
- "normalize/acl"
- variable: hostPath
label: Host Path
description: The host path to use for storage.
schema:
type: hostpath
show_if: [["aclEnable", "=", false]]
required: true
- variable: ixVolumeConfig
label: ixVolume Configuration
description: The configuration for the ixVolume dataset.
schema:
type: dict
show_if: [["type", "=", "ixVolume"]]
$ref:
- "normalize/ixVolume"
attrs:
- variable: aclEnable
label: Enable ACL
description: Enable ACL for the dataset.
schema:
type: boolean
default: false
- variable: datasetName
label: Dataset Name
description: The name of the dataset to use for storage.
schema:
type: string
required: true
immutable: true
default: "storage_entry"
- variable: aclEntries
label: ACL Configuration
schema:
type: dict
show_if: [["aclEnable", "=", true]]
attrs: []
- variable: smbConfig
label: SMB Share Configuration
description: The configuration for the SMB Share.
schema:
type: dict
show_if: [["type", "=", "smb-pv-pvc"]]
attrs:
- variable: server
label: Server
description: The server for the SMB share.
schema:
type: string
required: true
- variable: share
label: Share
description: The share name for the SMB share.
schema:
type: string
required: true
- variable: domain
label: Domain (Optional)
description: The domain for the SMB share.
schema:
type: string
- variable: username
label: Username
description: The username for the SMB share.
schema:
type: string
required: true
- variable: password
label: Password
description: The password for the SMB share.
schema:
type: string
required: true
private: true
- variable: size
label: Size (in Gi)
description: The size of the volume quota.
schema:
type: int
required: true
min: 1
default: 1
- variable: resources
group: Resources Configuration
label: ""
schema:
type: dict
attrs:
- variable: limits
label: Limits
schema:
type: dict
attrs:
- variable: cpu
label: CPU
description: CPU limit for Organizr.
schema:
type: string
max_length: 6
valid_chars: '^(0\.[1-9]|[1-9][0-9]*)(\.[0-9]|m?)$'
valid_chars_error: |
Valid CPU limit formats are</br>
- Plain Integer - eg. 1</br>
- Float - eg. 0.5</br>
- Milicpu - eg. 500m
default: "4000m"
required: true
- variable: memory
label: Memory
description: Memory limit for Organizr.
schema:
type: string
max_length: 12
valid_chars: '^[1-9][0-9]*([EPTGMK]i?|e[0-9]+)?$'
valid_chars_error: |
Valid Memory limit formats are</br>
- Suffixed with E/P/T/G/M/K - eg. 1G</br>
- Suffixed with Ei/Pi/Ti/Gi/Mi/Ki - eg. 1Gi</br>
- Plain Integer in bytes - eg. 1024</br>
- Exponent - eg. 134e6
default: "8Gi"
required: true

View File

@@ -0,0 +1 @@
{{ include "ix.v1.common.lib.chart.notes" $ }}

View File

@@ -0,0 +1,53 @@
{{- define "organizr.workload" -}}
workload:
organizr:
enabled: true
primary: true
type: Deployment
podSpec:
hostNetwork: false
securityContext:
fsGroup: {{ .Values.organizrID.group }}
containers:
organizr:
enabled: true
primary: true
imageSelector: image
securityContext:
runAsUser: 0
runAsGroup: 0
runAsNonRoot: false
readOnlyRootFilesystem: false
capabilities:
add:
- CHOWN
- FOWNER
- DAC_OVERRIDE
- SETGID
- SETUID
fixedEnv:
PUID: {{ .Values.organizrID.user }}
{{ with .Values.organizrConfig.additionalEnvs }}
envList:
{{ range $env := . }}
- name: {{ $env.name }}
value: {{ $env.value }}
{{ end }}
{{ end }}
probes:
liveness:
enabled: true
type: http
port: 80
path: /api/v2/ping
readiness:
enabled: true
type: http
port: 80
path: /api/v2/ping
startup:
enabled: true
type: http
port: 80
path: /api/v2/ping
{{- end -}}

View File

@@ -0,0 +1,26 @@
{{- define "organizr.persistence" -}}
persistence:
config:
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.organizrStorage.config) | nindent 4 }}
targetSelector:
organizr:
organizr:
mountPath: /config
varrun:
enabled: true
type: emptyDir
targetSelector:
organizr:
organizr:
mountPath: /var/run
{{- range $idx, $storage := .Values.organizrStorage.additionalStorages }}
{{ printf "organizr-%v:" (int $idx) }}
enabled: true
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
targetSelector:
organizr:
organizr:
mountPath: {{ $storage.mountPath }}
{{- end }}
{{- end -}}

View File

@@ -0,0 +1,12 @@
{{- define "organizr.portal" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: portal
data:
path: "/"
port: {{ .Values.organizrNetwork.webPort | quote }}
protocol: http
host: $node_ip
{{- end -}}

View File

@@ -0,0 +1,16 @@
{{- define "organizr.service" -}}
service:
organizr:
enabled: true
primary: true
type: NodePort
targetSelector: organizr
ports:
webui:
enabled: true
primary: true
port: {{ .Values.organizrNetwork.webPort }}
nodePort: {{ .Values.organizrNetwork.webPort }}
targetPort: 80
targetSelector: organizr
{{- end -}}

View File

@@ -0,0 +1,11 @@
{{- include "ix.v1.common.loader.init" . -}}
{{/* Merge the templates with Values */}}
{{- $_ := mustMergeOverwrite .Values (include "organizr.workload" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "organizr.service" $ | fromYaml) -}}
{{- $_ := mustMergeOverwrite .Values (include "organizr.persistence" $ | fromYaml) -}}
{{/* Create the configmap for portal manually*/}}
{{- include "organizr.portal" $ -}}
{{- include "ix.v1.common.loader.apply" . -}}

View 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\d+\.\d+\.\d+(-beta-\d+)?')
def newer_mapping(image_tags):
key = list(image_tags.keys())[0]
tags = {t.strip('v').split('-')[0]: 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)))

View File

@@ -0,0 +1,9 @@
icon_url: https://media.sys.truenas.net/apps/organizr/icons/icon.png
categories:
- media
screenshots:
- https://media.sys.truenas.net/apps/organizr/screenshots/screenshot1.webp
- https://media.sys.truenas.net/apps/organizr/screenshots/screenshot2.webp
tags:
- dashboard
- organizr