feat(apps): actually move to stable (#2319)

This commit is contained in:
Stavros Kois
2022-03-27 22:06:21 +03:00
committed by GitHub
parent 7aae1cac58
commit 143cffcb89
22 changed files with 2 additions and 2 deletions
+45
View File
@@ -0,0 +1,45 @@
# Changelog<br>
<a name="kutt-1.0.0"></a>
### [kutt-1.0.0](https://github.com/truecharts/apps/compare/kutt-0.0.7...kutt-1.0.0) (2022-03-27)
#### Feat
* move to stable and require smtp ([#2308](https://github.com/truecharts/apps/issues/2308))
<a name="kutt-0.0.7"></a>
### [kutt-0.0.7](https://github.com/truecharts/apps/compare/kutt-0.0.6...kutt-0.0.7) (2022-03-26)
#### Chore
* update helm general non-major helm releases ([#2290](https://github.com/truecharts/apps/issues/2290))
<a name="kutt-0.0.6"></a>
### [kutt-0.0.6](https://github.com/truecharts/apps/compare/kutt-0.0.5...kutt-0.0.6) (2022-03-26)
#### Chore
* bump all apps to trigger ci
<a name="kutt-0.0.4"></a>
### [kutt-0.0.4](https://github.com/truecharts/apps/compare/kutt-0.0.3...kutt-0.0.4) (2022-03-24)
#### Fix
* small fixes ([#2274](https://github.com/truecharts/apps/issues/2274))
<a name="kutt-0.0.1"></a>
### kutt-0.0.1 (2022-03-21)
#### Feat
* Add kutt ([#2239](https://github.com/truecharts/apps/issues/2239))
+7
View File
@@ -0,0 +1,7 @@
# Configuration Options
##### Connecting to other apps
If you need to connect this App to other Apps on TrueNAS SCALE, please refer to our [Linking Apps Internally](https://truecharts.org/manual/Quick-Start%20Guides/06-linking-apps/) quick-start guide.
##### Available config options
In the future this page is going to contain an automated list of options available in the installation/edit UI.
+37
View File
@@ -0,0 +1,37 @@
apiVersion: v2
appVersion: "2.7.4"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 9.1.15
- condition: postgresql.enabled
name: postgresql
repository: https://truecharts.org/
version: 7.0.10
- condition: redis.enabled
name: redis
repository: https://truecharts.org
version: 2.0.8
deprecated: false
description: A free and open source personal finance manager
home: https://github.com/truecharts/apps/tree/master/charts/stable/kutt
icon: https://truecharts.org/_static/img/appicons/kutt.png
keywords:
- kutt
- link
- short
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: kutt
sources:
- https://github.com/thedevs-network/kutt
type: application
version: 1.0.0
annotations:
truecharts.org/catagories: |
- productivity
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U
+39
View File
@@ -0,0 +1,39 @@
# Introduction
A free and open source personal finance manager
TrueCharts are designed to be installed as TrueNAS SCALE app only. We can not guarantee this charts works as a stand-alone helm installation.
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/apps/issues/new/choose)**
## Source Code
* <https://github.com/thedevs-network/kutt>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://library-charts.truecharts.org | common | 9.1.15 |
| https://truecharts.org/ | postgresql | 7.0.10 |
| https://truecharts.org | redis | 2.0.8 |
## Installing the Chart
To install this App on TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/02-Installing-an-App/).
## Upgrading, Rolling Back and Uninstalling the Chart
To upgrade, rollback or delete this App from TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/04-Upgrade-rollback-delete-an-App/).
## Support
- Please check our [quick-start guides](https://truecharts.org/manual/Quick-Start%20Guides/01-Adding-TrueCharts/) first.
- See the [Wiki](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/apps/issues/new/choose)
---
All Rights Reserved - The TrueCharts Project
+67
View File
@@ -0,0 +1,67 @@
# Default Helm-Values
TrueCharts is primarily build to supply TrueNAS SCALE Apps.
However, we also supply all Apps as standard Helm-Charts. In this document we aim to document the default values in our values.yaml file.
Most of our Apps also consume our "common" Helm Chart.
If this is the case, this means that all values.yaml values are set to the common chart values.yaml by default. This values.yaml file will only contain values that deviate from the common chart.
You will, however, be able to use all values referenced in the common chart here, besides the values listed in this document.
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| env.ADMIN_EMAILS | string | `"admin@example.com,admin@example2.com"` | |
| env.CONTACT_EMAIL | string | `"admin@example.com"` | |
| env.CUSTOM_DOMAIN_USE_HTTPS | bool | `false` | |
| env.DB_NAME | string | `"kutt"` | |
| env.DB_PORT | string | `"5432"` | |
| env.DB_USER | string | `"kutt"` | |
| env.DEFAULT_DOMAIN | string | `"localhost:{{ .Values.service.main.ports.main.port }}"` | |
| env.DEFAULT_MAX_STATS_PER_LINK | int | `5000` | |
| env.DISALLOW_ANONYMOUS_LINKS | bool | `false` | |
| env.DISALLOW_REGISTRATION | bool | `false` | |
| env.LINK_LENGTH | int | `6` | |
| env.MAIL_FROM | string | `""` | |
| env.MAIL_HOST | string | `""` | |
| env.MAIL_PORT | int | `567` | |
| env.MAIL_SECURE | bool | `true` | |
| env.NON_USER_COOLDOWN | int | `0` | |
| env.PORT | string | `"{{ .Values.service.main.ports.main.port }}"` | |
| env.REDIS_PORT | string | `"6379"` | |
| env.REPORT_EMAIL | string | `"admin@example.com"` | |
| env.SITE_NAME | string | `"My Kutt Instance"` | |
| env.USER_LIMIT_PER_DAY | int | `50` | |
| envValueFrom.DB_HOST.secretKeyRef.key | string | `"plainhost"` | |
| envValueFrom.DB_HOST.secretKeyRef.name | string | `"dbcreds"` | |
| envValueFrom.DB_PASSWORD.secretKeyRef.key | string | `"postgresql-password"` | |
| envValueFrom.DB_PASSWORD.secretKeyRef.name | string | `"dbcreds"` | |
| envValueFrom.JWT_SECRET.secretKeyRef.key | string | `"JWT_SECRET"` | |
| envValueFrom.JWT_SECRET.secretKeyRef.name | string | `"kutt-secrets"` | |
| envValueFrom.REDIS_HOST.secretKeyRef.key | string | `"plainhost"` | |
| envValueFrom.REDIS_HOST.secretKeyRef.name | string | `"rediscreds"` | |
| envValueFrom.REDIS_PASSWORD.secretKeyRef.key | string | `"redis-password"` | |
| envValueFrom.REDIS_PASSWORD.secretKeyRef.name | string | `"rediscreds"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"tccr.io/truecharts/kutt"` | |
| image.tag | string | `"v2.7.4@sha256:7b89481d467e1c1dc75e672bdac18dd00fdb4a3f0b60d90518acbf8eddfe8615"` | |
| podSecurityContext.runAsGroup | int | `0` | |
| podSecurityContext.runAsUser | int | `0` | |
| postgresql.enabled | bool | `true` | |
| postgresql.existingSecret | string | `"dbcreds"` | |
| postgresql.postgresqlDatabase | string | `"kutt"` | |
| postgresql.postgresqlUsername | string | `"kutt"` | |
| redis.enabled | bool | `true` | |
| redis.existingSecret | string | `"rediscreds"` | |
| secret.GOOGLE_ANALYTICS | string | `""` | |
| secret.GOOGLE_ANALYTICS_UNIVERSAL | string | `""` | |
| secret.GOOGLE_SAFE_BROWSING_KEY | string | `""` | |
| secret.MAIL_PASSWORD | string | `""` | |
| secret.MAIL_USER | string | `""` | |
| secret.RECAPTCHA_SECRET_KEY | string | `""` | |
| secret.RECAPTCHA_SITE_KEY | string | `""` | |
| securityContext.readOnlyRootFilesystem | bool | `false` | |
| securityContext.runAsNonRoot | bool | `false` | |
| service.main.ports.main.port | int | `10195` | |
All Rights Reserved - The TrueCharts Project
+395
View File
@@ -0,0 +1,395 @@
# Include{groups}
portals:
open:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: true
# Include{global}
- variable: controller
group: "Controller"
label: ""
schema:
additional_attrs: true
type: dict
attrs:
- variable: advanced
label: "Show Advanced Controller Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: type
description: "Please specify type of workload to deploy"
label: "(Advanced) Controller Type"
schema:
type: string
default: "deployment"
required: true
enum:
- value: "deployment"
description: "Deployment"
- value: "statefulset"
description: "Statefulset"
- value: "daemonset"
description: "Daemonset"
- variable: replicas
description: "Number of desired pod replicas"
label: "Desired Replicas"
schema:
type: int
default: 1
required: true
- variable: strategy
description: "Please specify type of workload to deploy"
label: "(Advanced) Update Strategy"
schema:
type: string
default: "Recreate"
required: true
enum:
- value: "Recreate"
description: "Recreate: Kill existing pods before creating new ones"
- value: "RollingUpdate"
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: secret
group: "Container Configuration"
label: "Image Secrets"
schema:
additional_attrs: true
type: dict
attrs:
- variable: MAIL_USER
label: "MAIL_USER"
schema:
type: string
default: ""
- variable: MAIL_PASSWORD
label: "MAIL_PASSWORD"
schema:
type: string
default: ""
private: true
- variable: RECAPTCHA_SITE_KEY
label: "RECAPTCHA_SITE_KEY"
schema:
type: string
default: ""
private: true
- variable: RECAPTCHA_SECRET_KEY
label: "RECAPTCHA_SECRET_KEY"
schema:
type: string
default: ""
private: true
- variable: GOOGLE_SAFE_BROWSING_KEY
label: "GOOGLE_SAFE_BROWSING_KEY"
schema:
type: string
default: ""
private: true
- variable: GOOGLE_ANALYTICS
label: "GOOGLE_ANALYTICS"
schema:
type: string
default: ""
private: true
- variable: GOOGLE_ANALYTICS_UNIVERSAL
label: "GOOGLE_ANALYTICS_UNIVERSAL"
schema:
type: string
default: ""
private: true
- variable: env
group: "Container Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: SITE_NAME
label: "SITE_NAME"
schema:
type: string
default: "My Kutt Instance"
- variable: DEFAULT_DOMAIN
label: "DEFAULT_DOMAIN"
schema:
type: string
required: true
default: ""
- variable: LINK_LENGTH
label: "LINK_LENGTH"
schema:
type: int
default: 6
- variable: USER_LIMIT_PER_DAY
label: "USER_LIMIT_PER_DAY"
schema:
type: int
default: 50
- variable: NON_USER_COOLDOWN
label: "NON_USER_COOLDOWN"
schema:
type: int
default: 0
- variable: DEFAULT_MAX_STATS_PER_LINK
label: "DEFAULT_MAX_STATS_PER_LINK"
schema:
type: int
default: 5000
- variable: DISALLOW_REGISTRATION
label: "DISALLOW_REGISTRATION"
schema:
type: boolean
default: false
- variable: DISALLOW_ANONYMOUS_LINKS
label: "DISALLOW_ANONYMOUS_LINKS"
schema:
type: boolean
default: false
- variable: CUSTOM_DOMAIN_USE_HTTPS
label: "CUSTOM_DOMAIN_USE_HTTPS"
schema:
type: boolean
default: false
- variable: ADMIN_EMAILS
label: "ADMIN_EMAILS"
schema:
type: string
default: "admin@example.com,admin@example2.com"
- variable: REPORT_EMAIL
label: "REPORT_EMAIL"
schema:
type: string
default: "admin@example.com"
- variable: CONTACT_EMAIL
label: "CONTACT_EMAIL"
schema:
type: string
default: "admin@example.com"
- variable: MAIL_HOST
label: "MAIL_HOST"
schema:
type: string
required: true
default: ""
- variable: MAIL_PORT
label: "MAIL_PORT"
schema:
type: int
default: 567
required: true
- variable: MAIL_FROM
label: "MAIL_FROM"
schema:
type: string
default: ""
- variable: MAIL_SECURE
label: "MAIL_SECURE"
schema:
type: boolean
default: true
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
additional_attrs: true
type: dict
attrs:
- 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{serviceSelector}
- 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: 10195
required: true
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: protocol
label: "Port Type"
schema:
type: string
default: "HTTP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 10195
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostNetwork
group: "Networking and Services"
label: "Host-Networking (Complicated)"
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceList}
- variable: ingress
label: ""
group: "Ingress"
schema:
additional_attrs: true
type: dict
attrs:
- variable: main
label: "Main Ingress"
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressTLS}
# Include{ingressTraefik}
# Include{ingressExpert}
# Include{ingressList}
# Include{security}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: securityContext
label: "Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: false
# Include{securityContextAdvanced}
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
schema:
type: int
default: 0
- 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}
File diff suppressed because one or more lines are too long
+20
View File
@@ -0,0 +1,20 @@
{{/* Define the secrets */}}
{{- define "kutt.secrets" -}}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: kutt-secrets
{{- $kuttprevious := lookup "v1" "Secret" .Release.Namespace "kutt-secrets" }}
{{- $jwt_secret := "" }}
data:
{{- if $kuttprevious}}
JWT_SECRET: {{ index $kuttprevious.data "JWT_SECRET" }}
{{- else }}
{{- $jwt_secret := randAlphaNum 32 }}
JWT_SECRET: {{ $jwt_secret | b64enc }}
{{- end }}
{{- end -}}
@@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.setup" . }}
{{/* Render secrets for kutt */}}
{{- include "kutt.secrets" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}
+85
View File
@@ -0,0 +1,85 @@
image:
repository: tccr.io/truecharts/kutt
pullPolicy: IfNotPresent
tag: v2.7.4@sha256:7b89481d467e1c1dc75e672bdac18dd00fdb4a3f0b60d90518acbf8eddfe8615
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
podSecurityContext:
runAsUser: 0
runAsGroup: 0
secret:
MAIL_USER: ""
MAIL_PASSWORD: ""
RECAPTCHA_SITE_KEY: ""
RECAPTCHA_SECRET_KEY: ""
GOOGLE_SAFE_BROWSING_KEY: ""
GOOGLE_ANALYTICS: ""
GOOGLE_ANALYTICS_UNIVERSAL: ""
env:
PORT: "{{ .Values.service.main.ports.main.port }}"
DB_NAME: kutt
DB_USER: kutt
DB_PORT: "5432"
REDIS_PORT: "6379"
# User Defined
SITE_NAME: "My Kutt Instance"
DEFAULT_DOMAIN: "localhost:{{ .Values.service.main.ports.main.port }}"
LINK_LENGTH: 6
USER_LIMIT_PER_DAY: 50
NON_USER_COOLDOWN: 0
DEFAULT_MAX_STATS_PER_LINK: 5000
DISALLOW_REGISTRATION: false
DISALLOW_ANONYMOUS_LINKS: false
CUSTOM_DOMAIN_USE_HTTPS: false
ADMIN_EMAILS: "admin@example.com,admin@example2.com"
REPORT_EMAIL: "admin@example.com"
CONTACT_EMAIL: "admin@example.com"
MAIL_HOST: ""
MAIL_PORT: 567
MAIL_FROM: ""
MAIL_SECURE: true
envValueFrom:
DB_HOST:
secretKeyRef:
name: dbcreds
key: plainhost
DB_PASSWORD:
secretKeyRef:
name: dbcreds
key: postgresql-password
REDIS_HOST:
secretKeyRef:
name: rediscreds
key: plainhost
REDIS_PASSWORD:
secretKeyRef:
name: rediscreds
key: redis-password
JWT_SECRET:
secretKeyRef:
name: kutt-secrets
key: JWT_SECRET
service:
main:
ports:
main:
port: 10195
# Enabled redis
redis:
enabled: true
existingSecret: "rediscreds"
# Enabled postgres
postgresql:
enabled: true
existingSecret: "dbcreds"
postgresqlUsername: kutt
postgresqlDatabase: kutt