mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 15:39:02 +00:00
[searx] add support for an existingSecret (#618)
* add support for an existingSecret Signed-off-by: Ryan Holt <ryan@ryanholt.net> * forgot the closing end Signed-off-by: Ryan Holt <ryan@ryanholt.net> * add a new line Signed-off-by: Ryan Holt <ryan@ryanholt.net>
This commit is contained in:
parent
56b6d69af7
commit
4d7c76e021
@ -2,7 +2,7 @@ apiVersion: v2
|
||||
appVersion: 0.18.0
|
||||
description: Searx is a privacy-respecting, hackable metasearch engine
|
||||
name: searx
|
||||
version: 2.0.1
|
||||
version: 2.1.0
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
keywords:
|
||||
- searx
|
||||
|
@ -132,6 +132,7 @@ N/A
|
||||
| ingress.enabled | bool | `false` | |
|
||||
| persistence.config.emptyDir | bool | `false` | |
|
||||
| persistence.config.enabled | bool | `false` | |
|
||||
| searx.existingSecret.enabled | bool | `false` | |
|
||||
| searx.baseUrl | string | `"https://searx.DOMAIN"` | |
|
||||
| searx.mortyKey | string | `"changeme"` | |
|
||||
| service.port.port | int | `80` | |
|
||||
|
@ -3,7 +3,7 @@
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "speedtest.name" -}}
|
||||
{{- define "searx.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
@ -13,7 +13,7 @@ Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
If release name contains chart name it will be used as a full name.
|
||||
*/}}
|
||||
{{- define "speedtest.fullname" -}}
|
||||
{{- define "searx.fullname" -}}
|
||||
{{- if .Values.fullnameOverride -}}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- else -}}
|
||||
|
@ -1,7 +1,5 @@
|
||||
|
||||
{{/*
|
||||
Searx Configuration files.
|
||||
*/}}
|
||||
{{- if not .Values.searx.existingSecret.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
@ -12,4 +10,5 @@ stringData:
|
||||
BIND_ADDRESS: "0.0.0.0:8080"
|
||||
BASE_URL: {{ .Values.searx.baseUrl }}
|
||||
MORTY_URL: {{ print .Values.searx.baseUrl "/morty/" }}
|
||||
MORTY_KEY: {{ .Values.searx.mortyKey }}
|
||||
MORTY_KEY: {{ .Values.searx.mortyKey }}
|
||||
{{- end }}
|
||||
|
@ -14,6 +14,8 @@ strategy:
|
||||
type: Recreate
|
||||
|
||||
searx:
|
||||
existingSecret:
|
||||
enabled: false
|
||||
# external URL
|
||||
baseUrl: "https://searx.DOMAIN"
|
||||
# generate a random key used by Morty (Privacy aware web content sanitizer proxy as a service)
|
||||
|
Loading…
Reference in New Issue
Block a user