feat(microbin): add microbin (#3993)

* feat(microbin): add microbin

* update version

* hmm

* again

* whoops

* few quotes

* hmm

* helm quote

* ...

* hmm

* ..

* no mess

* wrong docs?

* finally
This commit is contained in:
Stavros Kois
2022-10-03 01:11:21 +03:00
committed by GitHub
parent b173238863
commit 3699e4a821
9 changed files with 383 additions and 0 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
+26
View File
@@ -0,0 +1,26 @@
apiVersion: v2
appVersion: "10.6.2"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 10.6.4
description: MicroBin is a super tiny, feature rich, configurable, self-contained and self-hosted paste bin web application.
home: https://truecharts.org/docs/charts/stable/airsonic
icon: https://truecharts.org/img/hotlink-ok/chart-icons/airsonic.png
keywords:
- microbin
kubeVersion: ">=1.16.0-0"
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: microbin
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/airsonic
- https://github.com/szabodanika/microbin
version: 0.0.1
annotations:
truecharts.org/catagories: |
- utility
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

+223
View File
@@ -0,0 +1,223 @@
# Include{groups}
portals:
open:
# Include{portalLink}
questions:
# Include{global}
# Include{controller}
# Include{controllerDeployment}
# Include{replicas}
# Include{replica1}
# Include{strategy}
# Include{recreate}
# Include{controllerExpert}
# Include{controllerExpertExtraArgs}
- variable: microbin
group: Container Configuration
label: Microbin Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: username
label: Username
description: Require username for HTTP Basic Authentication when visiting the service.
schema:
type: string
default: ""
- variable: password
label: Password
description: Require password for HTTP Basic Authentication when visiting the service.
schema:
type: string
private: true
default: ""
- variable: title
label: Title
description: Replaces the default title in the navigation bar with your own.
schema:
type: string
default: ""
- variable: editable
label: Editable
description: Enables editable pastas.
schema:
type: boolean
default: true
- variable: syntax_highlight
label: Syntax Highlight
description: Enables syntax highlighting support.
schema:
type: boolean
default: true
- variable: hide_logo
label: Hide Logo
description: Hides the MicroBin logo from the navigation bar on every page.
schema:
type: boolean
default: false
- variable: hide_header
label: Hide Header
description: Hides the navigation bar on every page.
schema:
type: boolean
default: false
- variable: hide_footer
label: Hide Footer
description: Hides the footer on every page.
schema:
type: boolean
default: false
show_subquestions_if: false
subquestions:
- variable: footer
label: Footer
description: Replaces the default footer text with your own.
schema:
type: string
default: ""
- variable: no_listing
label: No Listing
description: Disables the /pastalist endpoint, essentially making all pastas private.
schema:
type: boolean
default: false
- variable: private
label: Private
description: Enables private pastas. With the URL to your pasta, it will still be accessible.
schema:
type: boolean
default: true
- variable: pure_html
label: Pure HTML
description: Disables main CSS styling, just uses a few in-line stylings for the layout.
schema:
type: boolean
default: false
- variable: read_only
label: Read Only
description: Disables adding/editing/removing pastas entirely.
schema:
type: boolean
default: false
- variable: wide
label: Wide
description: Changes the maximum width of the UI from 720 pixels to 1080 pixels.
schema:
type: boolean
default: true
- variable: threads
label: Threads
description: Number of workers MicroBin is allowed to have.
schema:
type: int
default: 1
# Include{containerConfig}
# 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: 10302
required: true
# Include{advancedPortHTTP}
- variable: targetPort
label: Target Port
description: The internal(!) port on the container the Application runs on
schema:
type: int
default: 10302
# Include{serviceExpertRoot}
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: data
label: App Data Storage
description: Stores the Application Data.
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
# Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: Main Ingress
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressExpert}
# Include{ingressList}
# Include{security}
# Include{securityContextAdvancedRoot}
- variable: privileged
label: Privileged mode
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: ReadOnly Root Filesystem
schema:
type: boolean
default: true
- variable: allowPrivilegeEscalation
label: Allow Privilege Escalation
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: runAsNonRoot
schema:
type: boolean
default: true
# Include{securityContextAdvanced}
# Include{podSecurityContextRoot}
- 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 this App of the user running the application
schema:
type: int
default: 568
- variable: fsGroup
label: fsGroup
description: The group that should own ALL storage.
schema:
type: int
default: 568
# Include{podSecurityContextAdvanced}
# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{promtail}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
@@ -0,0 +1,58 @@
{{- define "microbin.args" -}}
{{ $v := .Values.microbin }}
args:
- --port
- {{ .Values.service.main.ports.main.port | quote }}
{{- if $v.editable }}
- --editable
{{- end }}
{{- if $v.hide_logo }}
- --hide-logo
{{- end }}
{{- if $v.hide_header }}
- --hide-header
{{- end }}
{{- if not $v.hide_footer }}
{{- with $v.footer }}
- --footer-text
- {{ . | quote }}
{{- end }}
{{- else }}
- --hide-footer
{{- end }}
{{- if $v.no_listing }}
- --no-listing
{{- end }}
{{- if $v.syntax_highlight }}
- --highlightsyntax
{{- end }}
{{- if $v.private }}
- --private
{{- end }}
{{- if $v.pure_html }}
- --pure-html
{{- end }}
{{- if $v.read_only }}
- --readonly
{{- end }}
{{- with $v.title }}
- --title
- {{ . | quote }}
{{- end }}
{{- if $v.wide }}
- --wide
{{- end }}
{{- with $v.threads }}
- --threads
- {{ . | quote }}
{{- end }}
{{- if $v.username }}
- --auth-username
- {{ $v.username | quote }}
{{- if $v.password }}
- --auth-password
- {{ $v.password | quote }}
{{- end }}
{{- end }}
{{- end -}}
@@ -0,0 +1,10 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{- $newArgs := (include "microbin.args" . | fromYaml) }}
{{- $_ := set .Values "newArgs" $newArgs -}}
{{- $args := concat .Values.args .Values.newArgs.args }}
{{- $_ := set .Values "args" $args -}}
{{/* Render the templates */}}
{{ include "tc.common.loader.apply" . }}
+35
View File
@@ -0,0 +1,35 @@
image:
repository: tccr.io/truecharts/microbin
tag: v1.1.1@sha256:0af550df5ac615d1c3db0d39b3c91eb440d616e1de15a5a49115e8f81ded9e07
pullPolicy: IfNotPresent
microbin:
username: user
password: pass
title: Microbin
editable: true
syntax_highlight: true
hide_logo: false
hide_header: false
hide_footer: false
footer: TrueCharts
no_listing: false
private: true
pure_html: false
read_only: true
wide: true
threads: 1
service:
main:
ports:
main:
port: 10302
persistence:
data:
enabled: true
mountPath: "/app/pasta_data"
portal:
enabled: true
+1
View File
@@ -141,6 +141,7 @@ words:
- mergerfs
- meshroom
- metallb
- microbin
- Midarr
- middlewares
- middlewaretcps