diff --git a/charts/incubator/spoolman/.helmignore b/charts/incubator/spoolman/.helmignore new file mode 100644 index 00000000000..feb7464da6f --- /dev/null +++ b/charts/incubator/spoolman/.helmignore @@ -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 diff --git a/charts/incubator/spoolman/CHANGELOG.md b/charts/incubator/spoolman/CHANGELOG.md new file mode 100644 index 00000000000..f3e8318aa10 --- /dev/null +++ b/charts/incubator/spoolman/CHANGELOG.md @@ -0,0 +1,4 @@ +--- +title: Changelog +pagefind: false +--- diff --git a/charts/incubator/spoolman/Chart.yaml b/charts/incubator/spoolman/Chart.yaml new file mode 100644 index 00000000000..b4cfb9110a7 --- /dev/null +++ b/charts/incubator/spoolman/Chart.yaml @@ -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 + diff --git a/charts/incubator/spoolman/README.md b/charts/incubator/spoolman/README.md new file mode 100644 index 00000000000..2b8cc49d247 --- /dev/null +++ b/charts/incubator/spoolman/README.md @@ -0,0 +1,3 @@ +--- +title: README +--- diff --git a/charts/incubator/spoolman/icon.png b/charts/incubator/spoolman/icon.png new file mode 100644 index 00000000000..4b3a1a1369a Binary files /dev/null and b/charts/incubator/spoolman/icon.png differ diff --git a/charts/incubator/spoolman/templates/NOTES.txt b/charts/incubator/spoolman/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/spoolman/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/spoolman/templates/common.yaml b/charts/incubator/spoolman/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/spoolman/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/spoolman/values.yaml b/charts/incubator/spoolman/values.yaml new file mode 100644 index 00000000000..1adad49ca63 --- /dev/null +++ b/charts/incubator/spoolman/values.yaml @@ -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