feat(spoolman) add spoolman (#37549)

**Description**
Keep track of your inventory of 3D-printer filament spools.
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [X] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code
- [ ] 📜 Documentation Changes

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made changes to the documentation
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [X] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or
`fix(docs):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [X] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Xstar97TheNoob
2025-07-28 12:03:12 -04:00
committed by GitHub
parent 3ca3ee2fd0
commit 5d191c9672
8 changed files with 170 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl
# docs folder
/docs
# icon
icon.png
icon.webp
icon-small.webp
+4
View File
@@ -0,0 +1,4 @@
---
title: Changelog
pagefind: false
---
+40
View File
@@ -0,0 +1,40 @@
annotations:
artifacthub.io/links: |-
- name: support
url: https://discord.com/invite/tVsPTHWTtr
max_scale_version: 24.04.1
min_scale_version: 24.04.0
truecharts.org/category: inventory
truecharts.org/max_helm_version: "3.17"
truecharts.org/min_helm_version: "3.14"
truecharts.org/train: incubator
apiVersion: v2
appVersion: 0.22.1
dependencies:
- name: common
version: 28.13.0
repository: oci://tccr.io/truecharts
condition: ""
alias: ""
tags: []
import-values: []
deprecated: false
description: Keep track of your inventory of 3D-printer filament spools.
home: https://truecharts.org/charts/incubator/spoolman
icon: https://truecharts.org/img/hotlink-ok/chart-icons/spoolman.webp
keywords:
- spoolman
- inventory
kubeVersion: '>=1.24.0-0'
maintainers:
- name: TrueCharts
email: info@truecharts.org
url: https://truecharts.org
name: spoolman
sources:
- https://github.com/Donkie/Spoolman
- https://github.com/truecharts/charts/tree/master/charts/incubator/spoolman
- https://ghcr.io/donkie/spoolman
type: application
version: 0.0.1
+3
View File
@@ -0,0 +1,3 @@
---
title: README
---
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -0,0 +1 @@
{{ include "tc.v1.common.loader.all" . }}
+89
View File
@@ -0,0 +1,89 @@
image:
repository: ghcr.io/donkie/spoolman
pullPolicy: IfNotPresent
tag: 0.22.1@sha256:238ea5bfb2eeda4436c39f54e73df5fef4ee904fb7c291617588b856786fe0ef
securityContext:
container:
readOnlyRootFilesystem: false
runAsGroup: 0
runAsUser: 0
service:
main:
ports:
main:
protocol: http
port: 8000
workload:
main:
podSpec:
containers:
main:
env:
# Host and port to listen on
SPOOLMAN_HOST: 0.0.0.0
SPOOLMAN_PORT: "{{ .Values.service.main.ports.main.port }}"
SPOOLMAN_DIR_DATA: "{{ .Values.persistence.data.mountPath }}"
SPOOLMAN_DIR_LOGS: "{{ .Values.persistence.logs.mountPath }}"
# DB Type: sqlite, mysql, postgres, cockroachdb
SPOOLMAN_DB_TYPE: postgres
SPOOLMAN_DB_HOST:
secretKeyRef:
name: cnpg-main-urls
key: host
SPOOLMAN_DB_PORT: 5432
SPOOLMAN_DB_NAME: "{{ .Values.cnpg.main.database }}"
SPOOLMAN_DB_USERNAME: "{{ .Values.cnpg.main.user }}"
SPOOLMAN_DB_PASSWORD:
secretKeyRef:
name: cnpg-main-user
key: password
# Logging level: DEBUG, INFO, WARNING, ERROR, CRITICAL
# Logs will only be reported if the level is higher than the level set here
# Default if not set: INFO
# SPOOLMAN_LOGGING_LEVEL=INFO
# Change base path
# Set this if you want to host Spoolman at a sub-path
# If you want the root to be e.g. myhost.com/spoolman
# Then set this to /spoolman
# SPOOLMAN_BASE_PATH=
# Enable Collect Prometheus metrics at database
# Default: FALSE
# SPOOLMAN_METRICS_ENABLED=TRUE
# Collect items (filaments, materials, etc.) from an external database
# Set this to a URL of an external database. Set to an empty string to disable
# Default: https://donkie.github.io/SpoolmanDB/
# EXTERNAL_DB_URL=https://myhost.com/spoolmandb/
# Sync interval in seconds, set to 0 to disable automatic sync. It will only sync on start-up then.
# Default: 3600
# EXTERNAL_DB_SYNC_INTERVAL=3600
# Enable debug mode
# If enabled, the client will accept requests from any host
# This can be useful when developing, but is also a security risk
# Default: FALSE
SPOOLMAN_DEBUG_MODE: true
# Allows CORS ORIGIN.
# Use the https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin semantics
# separated by commas
# for example to allow request from source1.domain.com on port p1 and source2.domain.com on port p2
# SPOOLMAN_CORS_ORIGIN=source1.domain.com:p1, source2.domain.com:p2
# to allow from any
# SPOOLMAN_CORS_ORIGIN=*
persistence:
data:
enabled: true
mountPath: "/data"
logs:
enabled: true
mountPath: "/logs"
cnpg:
main:
enabled: true
user: spoolman
database: spoolman