From 2489c2a0f8f5e7162f99dd804828b9372f9793da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skyler=20M=C3=A4ntysaari?= Date: Sat, 22 Feb 2025 12:59:15 +0200 Subject: [PATCH] feat: support specifying BG_HELPER_URL (#129) * feat: support specifying BG_HELPER. * Fixing up CI as well --- .github/workflows/charts-lint.yaml | 4 ++-- .github/workflows/pr-metadata.yaml | 2 +- charts/apps/piped/Chart.yaml | 6 +++--- charts/apps/piped/templates/backend/configmap.yaml | 3 +++ charts/apps/piped/values.yaml | 1 + 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/charts-lint.yaml b/.github/workflows/charts-lint.yaml index 809d959..0c84aaa 100644 --- a/.github/workflows/charts-lint.yaml +++ b/.github/workflows/charts-lint.yaml @@ -36,13 +36,13 @@ jobs: ref: ${{ inputs.checkoutCommit }} - name: Verify chart version - uses: bjw-s/helm-charts-actions/verify-chart-version@main + uses: bjw-s-labs/helm-charts-actions/verify-chart-version@2025.2.0 id: verify-chart-version with: chart: "charts/${{ matrix.chart }}" - name: Verify chart changelog - uses: bjw-s/helm-charts-actions/verify-chart-changelog@main + uses: bjw-s-labs/helm-charts-actions/verify-chart-changelog@2025.2.0 if: inputs.isRenovatePR != 'true' id: verify-chart-changelog with: diff --git a/.github/workflows/pr-metadata.yaml b/.github/workflows/pr-metadata.yaml index 9b485c4..a40b40b 100644 --- a/.github/workflows/pr-metadata.yaml +++ b/.github/workflows/pr-metadata.yaml @@ -73,5 +73,5 @@ jobs: - added|modified: '**' - name: Collect changed charts - uses: bjw-s/helm-charts-actions/collect-charts@main + uses: bjw-s-labs/helm-charts-actions/collect-charts@2025.2.0 id: changed-charts diff --git a/charts/apps/piped/Chart.yaml b/charts/apps/piped/Chart.yaml index c67cb08..0192a57 100644 --- a/charts/apps/piped/Chart.yaml +++ b/charts/apps/piped/Chart.yaml @@ -10,7 +10,7 @@ sources: - https://github.com/TeamPiped/piped-proxy keywords: - streaming -version: 7.0.2 +version: 7.1.0 appVersion: latest kubeVersion: ">=1.26.0-0" maintainers: @@ -27,5 +27,5 @@ dependencies: condition: postgresql.enabled annotations: artifacthub.io/changes: |- - - kind: changed - description: Upgraded `postgresql` chart dependency to version 16.3.5 + - kind: added + description: ability to set BG_HELPER_URL. diff --git a/charts/apps/piped/templates/backend/configmap.yaml b/charts/apps/piped/templates/backend/configmap.yaml index e318b47..e528953 100644 --- a/charts/apps/piped/templates/backend/configmap.yaml +++ b/charts/apps/piped/templates/backend/configmap.yaml @@ -54,6 +54,9 @@ data: {{- else }} {{- fail "API_URL needs to be set in config values or backend ingress must be enabled."}} {{ end }} + {{- if .Values.backend.config.BG_HELPER_URL }} + BG_HELPER_URL: {{ .Values.backend.config.BG_HELPER_URL }} + {{ end }} {{- if .Values.backend.config.FRONTEND_URL }} FRONTEND_URL: {{.Values.backend.config.FRONTEND_URL }} {{- else if (and .Values.ingress.main.enabled .Values.ingress.main.tls) }} diff --git a/charts/apps/piped/values.yaml b/charts/apps/piped/values.yaml index fb829c3..6263a6a 100644 --- a/charts/apps/piped/values.yaml +++ b/charts/apps/piped/values.yaml @@ -83,6 +83,7 @@ backend: # CAPTCHA_BASE_URL: https://api.capmonster.cloud/ # CAPTCHA_API_KEY: INSERT_HERE # API_URL: https://BACKEND_HOSTNAME + # BG_HELPER_URL: http://BG_HELPER_HOSTNAME # FRONTEND_URL: https://FRONTEND_HOSTNAME # Enable haveibeenpwned compromised password API # COMPROMISED_PASSWORD_CHECK: true