[paperles] Set PAPERLES_URL automatically (#1539)

This commit is contained in:
Angel Nunez Mencias 2022-04-30 10:37:02 +02:00 committed by GitHub
parent 44056e680c
commit 12d8790717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 7 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: ngx-1.7.0
description: Paperless - Index and archive all of your scanned paper documents
name: paperless
version: 8.6.2
version: 8.7.0
kubeVersion: ">=1.16.0-0"
keywords:
- paperless
@ -30,5 +30,5 @@ dependencies:
condition: redis.enabled
annotations:
artifacthub.io/changes: |
- kind: changed
description: Update appVersion to 1.7.0
- kind: added
description: Set PAPERLESS_URL automatically

View File

@ -1,6 +1,6 @@
# paperless
![Version: 8.6.2](https://img.shields.io/badge/Version-8.6.2-informational?style=flat-square) ![AppVersion: ngx-1.7.0](https://img.shields.io/badge/AppVersion-ngx--1.7.0-informational?style=flat-square)
![Version: 8.7.0](https://img.shields.io/badge/Version-8.7.0-informational?style=flat-square) ![AppVersion: ngx-1.7.0](https://img.shields.io/badge/AppVersion-ngx--1.7.0-informational?style=flat-square)
Paperless - Index and archive all of your scanned paper documents
@ -96,15 +96,15 @@ N/A
## Changelog
### Version 8.6.2
### Version 8.7.0
#### Added
N/A
* Set PAPERLESS_URL automatically
#### Changed
* Update appVersion to 1.7.0
N/A
#### Fixed

View File

@ -1 +1,11 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Append the hardcoded settings */}}
{{- define "paperless.harcodedValues" -}}
env:
PAPERLESS_URL: {{ (first .Values.ingress.main.hosts).host }}
{{- end -}}
{{- $_ := merge .Values (include "paperless.harcodedValues" . | fromYaml) -}}
{{ include "common.all" . }}

View File

@ -36,6 +36,7 @@ env:
# PAPERLESS_ADMIN_USER: admin
# -- Password for the root user
# PAPERLESS_ADMIN_PASSWORD: admin
# PAPERLESS_URL: <set to main ingress by default>
# -- Configures service settings for the chart.
# @default -- See values.yaml