chore: fix move mistake and cleanup metadata

This commit is contained in:
Kjeld Schouten
2023-12-16 13:04:04 +01:00
parent 63d297bace
commit b3cff36b48
1998 changed files with 11936 additions and 12226 deletions
+30
View File
@@ -0,0 +1,30 @@
# 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
+1
View File
@@ -0,0 +1 @@
# Changelog
+48
View File
@@ -0,0 +1,48 @@
kubeVersion: '>=1.24.0-0'
apiVersion: v2
name: hasty-paste
version: 2.0.4
appVersion: 1.9.0
description: A fast and minimal paste bin, written in Python using Quart.
home: https://truecharts.org/charts/incubator/hasty-paste
icon: https://truecharts.org/img/hotlink-ok/chart-icons/hasty-paste.png
deprecated: false
sources:
- https://github.com/enchant97/hasty-paste/blob/main/docs/install.md
- https://github.com/enchant97/hasty-paste
- https://github.com/truecharts/charts/tree/master/charts/incubator/hasty-paste
- https://ghcr.io/enchant97/hasty-paste
maintainers:
- name: TrueCharts
email: info@truecharts.org
url: https://truecharts.org
keywords:
- hasty-paste
- Cloud
- Productivity
- Tools-Utilities
- Network-Other
dependencies:
- name: common
version: 16.2.6
repository: https://library-charts.truecharts.org
condition: ""
alias: ""
tags: []
import-values: []
- name: redis
version: 9.0.3
repository: https://deps.truecharts.org
condition: redis.enabled
alias: ""
tags: []
import-values: []
annotations:
max_scale_version: 23.10.1
min_scale_version: 22.12.4
truecharts.org/SCALE-support: "true"
truecharts.org/category: Cloud
truecharts.org/max_helm_version: "3.13"
truecharts.org/min_helm_version: "3.12"
truecharts.org/train: incubator
type: application
+27
View File
@@ -0,0 +1,27 @@
# README
## General Info
TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE.
However only installations using the TrueNAS SCALE Apps system are supported.
For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/incubator/hasty-paste)
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)**
## Support
- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE/guides/scale-intro).
- See the [Website](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/charts/issues/new/choose)
---
## Sponsor TrueCharts
TrueCharts can only exist due to the incredible effort of our staff.
Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can!
*All Rights Reserved - The TrueCharts Project*
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

+229
View File
@@ -0,0 +1,229 @@
# Include{groups}
portals:
open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
- variable: hastyPaste
group: App Configuration
label: Hasty Paste Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: new_at_index
label: New at Index
description: Index page displays new paste page instead
schema:
type: boolean
default: false
- variable: enable_public_list
label: Enable Public List
description: Whether to enable public access for listing pastes
schema:
type: boolean
default: false
- variable: max_body_size
label: Max Body Size
description: The max body size, given in bytes
schema:
type: int
required: true
default: 2000000
- variable: log_level
label: Log Level
description: What log level to use
schema:
type: string
required: true
default: INFO
enum:
- value: INFO
description: Info
- value: WARNING
description: Warning
- value: ERROR
description: Error
- value: DEBUG
description: Debug
- value: CRITICAL
description: Critical
- variable: workers
label: Workers
description: Number of separate processes to spawn
schema:
type: int
required: true
default: 1
- variable: interface
label: Interface (UI)
schema:
additional_attrs: true
type: dict
attrs:
- variable: default_use_long_id
label: Default Use Long ID
description: Setting this to "True" or "False" hides the long id checkbox in UI
schema:
type: boolean
default: false
- variable: default_expire_time_enable
label: Default Expire Time Enable
description: Enable a default expire time in web ui
schema:
type: boolean
default: false
- variable: default_expire_time_minutes
label: Default Expire Time Minutes
description: Default minutes in ui for expiry if enabled
schema:
type: int
required: true
default: 0
- variable: default_expire_time_hours
label: Default Expire Time Hours
description: Default hours in ui for expiry if enabled
schema:
type: int
required: true
default: 1
- variable: default_expire_time_days
label: Default Expire Time Days
description: Default days in ui for expiry if enabled
schema:
type: int
required: true
default: 0
- variable: branding
label: Branding
schema:
additional_attrs: true
type: dict
attrs:
- variable: title
label: Title
description: Customize the app title
schema:
type: string
default: ""
- variable: description
label: Description
description: Customize the app description
schema:
type: string
default: ""
- variable: icon
label: Icon
description: Customize the app icon, provide as absolute filepath (Path inside the container)
schema:
type: string
default: ""
- variable: favicon
label: Favicon
description: Customize the app favicon, provide as absolute filepath (Path inside the container)
schema:
type: string
default: ""
- variable: css_file
label: CSS File
description: Customize the site theme, using a provided css file (Path inside the container)
schema:
type: string
default: ""
- variable: hide_version
label: Hide Version
description: Hide the app version number
schema:
type: boolean
default: false
# Include{serviceRoot}
- variable: main
label: Main Service
description: The Primary service on which the healthcheck runs, often the webUI
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: main
label: Main Service Port Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: Port
description: This port exposes the container port on the service
schema:
type: int
default: 10601
required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: config
label: App Config Storage
description: Stores the Application Configuration.
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: Main Ingress
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressAdvanced}
# Include{ingressList}
# Include{securityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID of the user running the application"
schema:
type: int
default: 568
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
@@ -0,0 +1,45 @@
{{/* Define the secret */}}
{{- define "hastypaste.secrets" -}}
{{- $secretName := (printf "%s-hastypaste-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
enabled: true
data:
{{- $redis := .Values.redis -}}
{{- $redisPass := $redis.creds.redisPassword | trimAll "\"" -}}
{{- $redisUser := $redis.username }}
{{- $redisURL := $redis.creds.plainhost | trimAll "\"" }}
CACHE__REDIS_URI: {{ printf "redis://%v:%v@%v:6379/0" $redisUser $redisPass $redisURL | quote }}
CACHE__ENABLE: "true"
PORT: {{ .Values.service.main.ports.main.port | quote }}
TIME_ZONE: {{ .Values.TZ }}
PASTE_ROOT: {{ .Values.persistence.config.mountPath | quote }}
{{/* User defined */}}
{{- $hasty := .Values.hastyPaste }}
NEW_AT_INDEX: {{ $hasty.new_at_index | quote }}
ENABLE_PUBLIC_LIST: {{ $hasty.enable_public_list | quote }}
MAX_BODY_SIZE: {{ (int $hasty.max_body_size) | quote }}
LOG_LEVEL: {{ $hasty.log_level }}
WORKERS: {{ $hasty.workers | quote }}
{{- $interface := $hasty.interface }}
UI_DEFAULT__USE_LONG_ID: {{ $interface.default_use_long_id | quote }}
UI_DEFAULT__EXPIRE_TIME__ENABLE: {{ $interface.default_expire_time_enable | quote }}
UI_DEFAULT__EXPIRE_TIME__MINUTES: {{ $interface.default_expire_time_minutes | quote }}
UI_DEFAULT__EXPIRE_TIME__HOURS: {{ $interface.default_expire_time_hours | quote }}
UI_DEFAULT__EXPIRE_TIME__DAYS: {{ $interface.default_expire_time_days | quote }}
{{- $branding := $hasty.branding }}
{{- with $branding.title }}
BRANDING__TITLE: {{ . | quote }}
{{- end -}}
{{- with $branding.description }}
BRANDING__DESCRIPTION: {{ . | quote }}
{{- end -}}
{{- with $branding.icon }}
BRANDING__ICON: {{ . | quote }}
{{- end -}}
{{- with $branding.favicon }}
BRANDING__FAVICON: {{ . | quote }}
{{- end -}}
{{- with $branding.css_file }}
BRANDING__CSS_FILE: {{ . | quote }}
{{- end }}
BRANDING__HIDE_VERSION: {{ $branding.hide_version | quote }}
{{- end }}
@@ -0,0 +1,11 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render secrets for hastyPaste */}}
{{- $secrets := include "hastypaste.secrets" . | fromYaml -}}
{{- if $secrets -}}
{{- $_ := set .Values.secret "hastypaste-secrets" $secrets -}}
{{- end -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}
+72
View File
@@ -0,0 +1,72 @@
hastyPaste:
branding:
css_file: ""
description: ""
favicon: ""
hide_version: false
icon: ""
title: ""
enable_public_list: false
interface:
default_expire_time_days: 0
default_expire_time_enable: false
default_expire_time_hours: 1
default_expire_time_minutes: 0
default_use_long_id: false
log_level: INFO
max_body_size: 2000000
new_at_index: false
workers: 1
image:
pullPolicy: IfNotPresent
repository: ghcr.io/enchant97/hasty-paste
tag: 1.9.0@sha256:fbbb670ac9b201bf0a47feaa7b1588b5b5c4657bbf49518f9534f12e8e80ce3d
persistence:
config:
enabled: true
mountPath: /app/data
portal:
open:
enabled: true
redis:
enabled: true
username: default
service:
main:
ports:
main:
port: 10601
protocol: http
workload:
main:
podSpec:
containers:
main:
envFrom:
- secretRef:
name: hastypaste-secrets
probes:
liveness:
custom: true
enabled: true
spec:
exec:
command:
- /bin/sh
- health-check.sh
readiness:
custom: true
enabled: true
spec:
exec:
command:
- /bin/sh
- health-check.sh
startup:
custom: true
enabled: true
spec:
exec:
command:
- /bin/sh
- health-check.sh