[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:
Ryan Holt 2021-02-23 14:11:15 -05:00 committed by GitHub
parent 56b6d69af7
commit 4d7c76e021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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` | |

View File

@ -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 -}}

View File

@ -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 }}

View File

@ -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)