From d8c03e8c7c6b2f1cdeeb7a4399376f2025f20977 Mon Sep 17 00:00:00 2001 From: TrueCharts Bot Date: Mon, 3 Mar 2025 11:46:53 +0100 Subject: [PATCH] =?UTF-8?q?chore(helm):=20update=20image=20ghcr.io/enchant?= =?UTF-8?q?97/hasty-paste=201.10.0=20=E2=86=92=202.0.0=20(#32733)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/enchant97/hasty-paste](https://redirect.github.com/enchant97/hasty-paste) | major | `fab6228` -> `9afbe87` | Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Release Notes
enchant97/hasty-paste (ghcr.io/enchant97/hasty-paste) ### [`v2.0.0`](https://redirect.github.com/enchant97/hasty-paste/blob/HEAD/CHANGELOG.md#200---2025-02-27) [Compare Source](https://redirect.github.com/enchant97/hasty-paste/compare/v1.10.0...v2.0.0) ##### Added - V2 app ##### Removed - V1 app
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). --------- Co-authored-by: alfi0812 --- charts/stable/hasty-paste/Chart.yaml | 11 +--- charts/stable/hasty-paste/ci/ci-values.yaml | 8 +++ .../stable/hasty-paste/templates/_secrets.tpl | 45 ------------- .../stable/hasty-paste/templates/common.yaml | 11 +--- charts/stable/hasty-paste/values.yaml | 63 +++---------------- 5 files changed, 19 insertions(+), 119 deletions(-) create mode 100644 charts/stable/hasty-paste/ci/ci-values.yaml delete mode 100644 charts/stable/hasty-paste/templates/_secrets.tpl diff --git a/charts/stable/hasty-paste/Chart.yaml b/charts/stable/hasty-paste/Chart.yaml index edd9eb1cbe4..404c09614b8 100644 --- a/charts/stable/hasty-paste/Chart.yaml +++ b/charts/stable/hasty-paste/Chart.yaml @@ -6,7 +6,7 @@ annotations: truecharts.org/min_helm_version: "3.11" truecharts.org/train: stable apiVersion: v2 -appVersion: 1.10.0 +appVersion: 2.0.0 dependencies: - name: common version: 25.4.10 @@ -15,13 +15,6 @@ dependencies: alias: "" tags: [] import-values: [] - - name: redis - version: 15.6.5 - repository: oci://tccr.io/truecharts - condition: redis.enabled - alias: "" - tags: [] - import-values: [] deprecated: false description: A fast and minimal paste bin, written in Python using Quart. home: https://truecharts.org/charts/stable/hasty-paste @@ -44,4 +37,4 @@ sources: - https://github.com/enchant97/hasty-paste/blob/main/docs/install.md - https://github.com/truecharts/charts/tree/master/charts/stable/hasty-paste type: application -version: 8.11.6 +version: 9.0.0 diff --git a/charts/stable/hasty-paste/ci/ci-values.yaml b/charts/stable/hasty-paste/ci/ci-values.yaml new file mode 100644 index 00000000000..27ce4849913 --- /dev/null +++ b/charts/stable/hasty-paste/ci/ci-values.yaml @@ -0,0 +1,8 @@ +workload: + main: + podSpec: + containers: + main: + env: + AUTH_TOKEN_SECRET: CmKH8PetPXfkBKWqejMyeLafMkHSY1agTk0z3yd1bY8= + SESSION_SECRET: CmKH8PetPXfkBKWqejMyeLafMkHSY1agTk0z3yd1bY8= diff --git a/charts/stable/hasty-paste/templates/_secrets.tpl b/charts/stable/hasty-paste/templates/_secrets.tpl deleted file mode 100644 index 5737de68fb8..00000000000 --- a/charts/stable/hasty-paste/templates/_secrets.tpl +++ /dev/null @@ -1,45 +0,0 @@ -{{/* 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 }} diff --git a/charts/stable/hasty-paste/templates/common.yaml b/charts/stable/hasty-paste/templates/common.yaml index 4553ecbfb46..78d963fb168 100644 --- a/charts/stable/hasty-paste/templates/common.yaml +++ b/charts/stable/hasty-paste/templates/common.yaml @@ -1,11 +1,2 @@ -{{/* 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" . }} +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/stable/hasty-paste/values.yaml b/charts/stable/hasty-paste/values.yaml index bee93161c76..41d0f5d33a3 100644 --- a/charts/stable/hasty-paste/values.yaml +++ b/charts/stable/hasty-paste/values.yaml @@ -1,36 +1,11 @@ -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.10.0@sha256:fab62283672928d3313bc4e2c7cb91c133c8a00c3d094417ce58c2c6d11272e1 + tag: 2.0.0@sha256:9afbe8703bb91ceb3b1e8de526155a980359981e838a42ded97548ef89b26869 persistence: config: enabled: true - mountPath: /app/data -portal: - open: - enabled: true -redis: - enabled: true - username: default + mountPath: /opt/hasty-paste/data service: main: ports: @@ -42,31 +17,9 @@ workload: 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 + env: + PUBLIC_URL: "http://example.com" + # Secrets can be generated by this command: openssl rand -base64 32 + AUTH_TOKEN_SECRET: "" + SESSION_SECRET: "" + BIND__PORT: "{{ .Values.service.main.ports.main.port }}"