diff --git a/charts/incubator/cannery/.helmignore b/charts/incubator/cannery/.helmignore new file mode 100644 index 000000000000..feb7464da6f7 --- /dev/null +++ b/charts/incubator/cannery/.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/cannery/CHANGELOG.md b/charts/incubator/cannery/CHANGELOG.md new file mode 100644 index 000000000000..f3e8318aa103 --- /dev/null +++ b/charts/incubator/cannery/CHANGELOG.md @@ -0,0 +1,4 @@ +--- +title: Changelog +pagefind: false +--- diff --git a/charts/incubator/cannery/Chart.yaml b/charts/incubator/cannery/Chart.yaml new file mode 100644 index 000000000000..b09da793e563 --- /dev/null +++ b/charts/incubator/cannery/Chart.yaml @@ -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 diff --git a/charts/incubator/cannery/README.md b/charts/incubator/cannery/README.md new file mode 100644 index 000000000000..2b8cc49d247a --- /dev/null +++ b/charts/incubator/cannery/README.md @@ -0,0 +1,3 @@ +--- +title: README +--- diff --git a/charts/incubator/cannery/icon.webp b/charts/incubator/cannery/icon.webp new file mode 100644 index 000000000000..99679fbe7e5d Binary files /dev/null and b/charts/incubator/cannery/icon.webp differ diff --git a/charts/incubator/cannery/templates/NOTES.txt b/charts/incubator/cannery/templates/NOTES.txt new file mode 100644 index 000000000000..efcb74cb7721 --- /dev/null +++ b/charts/incubator/cannery/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/cannery/templates/_secrets.tpl b/charts/incubator/cannery/templates/_secrets.tpl new file mode 100644 index 000000000000..d7f4809cf0a2 --- /dev/null +++ b/charts/incubator/cannery/templates/_secrets.tpl @@ -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 -}} \ No newline at end of file diff --git a/charts/incubator/cannery/templates/common.yaml b/charts/incubator/cannery/templates/common.yaml new file mode 100644 index 000000000000..92474f8b04d2 --- /dev/null +++ b/charts/incubator/cannery/templates/common.yaml @@ -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" . }} \ No newline at end of file diff --git a/charts/incubator/cannery/values.yaml b/charts/incubator/cannery/values.yaml new file mode 100644 index 000000000000..647b81b78591 --- /dev/null +++ b/charts/incubator/cannery/values.yaml @@ -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