feat(cannery) add cannery (#29567)
**Description** a firearms tracker website ⚒️ 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 **🧪 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 corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 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):` or `chore(chart-name):` **➕ 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:
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
title: Changelog
|
||||
pagefind: false
|
||||
---
|
||||
@@ -0,0 +1,36 @@
|
||||
annotations:
|
||||
max_scale_version: 24.04.1
|
||||
min_scale_version: 24.04.0
|
||||
truecharts.org/category: asset-management
|
||||
truecharts.org/max_helm_version: "3.15"
|
||||
truecharts.org/min_helm_version: "3.11"
|
||||
truecharts.org/train: incubator
|
||||
apiVersion: v2
|
||||
appVersion: 0.9.12
|
||||
dependencies:
|
||||
- name: common
|
||||
version: 25.1.7
|
||||
repository: oci://tccr.io/truecharts
|
||||
condition: ""
|
||||
alias: ""
|
||||
tags: []
|
||||
import-values: []
|
||||
deprecated: false
|
||||
description: The self-hosted firearm tracker website.
|
||||
home: https://truecharts.org/charts/incubator/cannery
|
||||
icon: https://truecharts.org/img/hotlink-ok/chart-icons/cannery.webp
|
||||
keywords:
|
||||
- cannery
|
||||
- asset-tracker
|
||||
kubeVersion: '>=1.24.0-0'
|
||||
maintainers:
|
||||
- name: TrueCharts
|
||||
email: info@truecharts.org
|
||||
url: https://truecharts.org
|
||||
name: cannery
|
||||
sources:
|
||||
- https://gitea.bubbletea.dev/shibao/cannery
|
||||
- https://github.com/truecharts/charts/tree/master/charts/incubator/cannery
|
||||
- https://hub.docker.com/r/shibaobun/cannery
|
||||
type: application
|
||||
version: 0.0.1
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
title: README
|
||||
---
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1 @@
|
||||
{{- include "tc.v1.common.lib.chart.notes" $ -}}
|
||||
@@ -0,0 +1,13 @@
|
||||
{{/* Define the secrets */}}
|
||||
{{- define "cannery.secrets" -}}
|
||||
|
||||
{{- $secretName := (printf "%s-cannery-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) -}}
|
||||
|
||||
{{- $secret_key_base := randAlphaNum 64 -}}
|
||||
{{- with (lookup "v1" "Secret" .Release.Namespace $secretName) -}}
|
||||
{{- $secret_key_base = index .data "SECRET_KEY_BASE" | b64dec -}}
|
||||
{{- end }}
|
||||
enabled: true
|
||||
data:
|
||||
SECRET_KEY_BASE: {{ $secret_key_base }}
|
||||
{{- end -}}
|
||||
@@ -0,0 +1,11 @@
|
||||
{{/* Make sure all variables are set properly */}}
|
||||
{{- include "tc.v1.common.loader.init" . }}
|
||||
|
||||
{{/* Render secrets for cannery */}}
|
||||
{{- $secrets := include "cannery.secrets" . | fromYaml -}}
|
||||
{{- if $secrets -}}
|
||||
{{- $_ := set .Values.secret "cannery-secrets" $secrets -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Render the templates */}}
|
||||
{{ include "tc.v1.common.loader.apply" . }}
|
||||
@@ -0,0 +1,56 @@
|
||||
image:
|
||||
repository: docker.io/shibaobun/cannery
|
||||
pullPolicy: IfNotPresent
|
||||
tag: 0.9.12@sha256:1700f704ba5ded03b895d503f3321aa73230d3b6b7e2fe9c49ed49a57d4a651b
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
main:
|
||||
protocol: http
|
||||
port: 4000
|
||||
workload:
|
||||
main:
|
||||
podSpec:
|
||||
containers:
|
||||
main:
|
||||
env:
|
||||
PORT: "{{ .Values.service.main.ports.main.port }}"
|
||||
# HOST must be set!
|
||||
# without http/https, preferrably the ingress url
|
||||
HOST: "cannery.local"
|
||||
# ecto://postgres:postgres@cannery-db/cannery
|
||||
DATABASE_URL: '{{ printf "ecto://%s:%s@%s:5432/%s" .Values.cnpg.main.user .Values.cnpg.main.creds.password (.Values.cnpg.main.creds.host | trimAll "\"") .Values.cnpg.main.database }}'
|
||||
SECRET_KEY_BASE:
|
||||
secretKeyRef:
|
||||
name: cannery-secrets
|
||||
key: SECRET_KEY_BASE
|
||||
# Ecto should use ipv6 to connect to PostgreSQL
|
||||
ECTO_IPV6: false
|
||||
# Controls the pool size to use with PostgreSQL. Defaults to 10.
|
||||
# POOL_SIZE: 10
|
||||
# Controls if user sign-up should be invite only or set to public. Set to public to enable public registration. Defaults to invite.
|
||||
REGISTRATION: "invite"
|
||||
# Sets a custom default locale. Defaults to en_US | de, fr and es
|
||||
LOCALE: en_US
|
||||
# The url for your SMTP email provider. Must be set.
|
||||
SMTP_HOST: "smtp.gmail.com"
|
||||
# The port for your SMTP relay. Defaults to 587.
|
||||
# SMTP_PORT: 587
|
||||
# The username for your SMTP relay. Must be set!
|
||||
SMTP_USERNAME: "example@gmail.com"
|
||||
# The password for your SMTP relay. Must be set!
|
||||
SMTP_PASSWORD: "example"
|
||||
# Set to true to enable SSL for emails. Defaults to false.
|
||||
SMTP_SSL: false
|
||||
# Sets the sender email in sent emails. Defaults to no-reply@HOST where HOST was previously defined.
|
||||
EMAIL_FROM: "no-reply@HOST"
|
||||
# Sets the sender name in sent emails. Defaults to "Cannery".
|
||||
EMAIL_NAME: Cannery
|
||||
cnpg:
|
||||
main:
|
||||
enabled: true
|
||||
user: cannery
|
||||
database: cannery
|
||||
portal:
|
||||
open:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user