migrate(searxng): Migrate to New Common (#10851)

**Description**

Another one

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [X] 🪛 Bugfix
- [X] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
StevenMcElligott
2023-07-29 01:25:58 +03:00
committed by GitHub
co-authored by Stavros Kois
parent c99982765e
commit c69017bdb7
5 changed files with 74 additions and 54 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ appVersion: "latest"
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 11.1.2 version: 13.2.1
deprecated: false deprecated: false
description: Meta search engine which aggregates results from more than 70 search services. description: Meta search engine which aggregates results from more than 70 search services.
home: https://truecharts.org/charts/incubator/searxng home: https://truecharts.org/charts/incubator/searxng
@@ -22,7 +22,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/searxng - https://github.com/truecharts/charts/tree/master/charts/incubator/searxng
- https://github.com/searxng/searxng - https://github.com/searxng/searxng
type: application type: application
version: 2.0.21 version: 3.0.0
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- Productivity - Productivity
+39 -39
View File
@@ -13,25 +13,25 @@ questions:
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
- variable: env - variable: env
group: App Configuration group: App Configuration
label: Image Environment label: Image Environment
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: INSTANCE_NAME - variable: INSTANCE_NAME
label: Instance Name label: Instance Name
description: Your SearXNG instance name description: Your SearXNG instance name
schema: schema:
type: string type: string
default: SearXng default: SearXng
- variable: BASE_URL - variable: BASE_URL
label: Base URL label: Base URL
description: Set base url like so https://search.mydomain.com description: Set base url like so https://search.mydomain.com
schema: schema:
type: string type: string
default: "" default: ""
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
@@ -71,7 +71,7 @@ questions:
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot} # Include{ingressRoot}
- variable: main - variable: main
label: Main Ingress label: "Main Ingress"
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -81,29 +81,29 @@ questions:
# Include{ingressTraefik} # Include{ingressTraefik}
# Include{ingressAdvanced} # Include{ingressAdvanced}
# Include{ingressList} # Include{ingressList}
# Include{securityContextRoot}
# Include{podSecurityContextRoot} - variable: runAsUser
- variable: runAsUser label: "runAsUser"
label: runAsUser description: "The UserID this App of the user running the application"
description: The UserID of the user running the application schema:
schema: type: int
type: int default: 0
default: 0 - variable: runAsGroup
- variable: runAsGroup label: "runAsGroup"
label: runAsGroup description: "The groupID this App of the user running the application"
description: The groupID this App of the user running the application schema:
schema: type: int
type: int default: 0
default: 0
# Include{securityContextContainer} # Include{securityContextContainer}
# Include{securityContextAdvanced} # Include{securityContextAdvanced}
# Include{securityContextPod} # Include{securityContextPod}
- variable: fsGroup - variable: fsGroup
label: fsGroup label: "fsGroup"
description: The group that should own ALL storage. description: "The group that should own ALL storage."
schema: schema:
type: int type: int
default: 568 default: 568
# Include{resources} # Include{resources}
# Include{advanced} # Include{advanced}
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -1,2 +1,2 @@
{{/* Render the templates */}} {{/* Render the templates */}}
{{ include "tc.common.loader.all" . }} {{ include "tc.v1.common.loader.all" . }}
+31 -12
View File
@@ -3,25 +3,43 @@ image:
repository: tccr.io/truecharts/searxng repository: tccr.io/truecharts/searxng
tag: latest@sha256:1a312a8c4f11a203edd2b5f41eb13d0faeda00aa3c40e2e833be47b6ea9659ea tag: latest@sha256:1a312a8c4f11a203edd2b5f41eb13d0faeda00aa3c40e2e833be47b6ea9659ea
env: workload:
BASE_URL: "" main:
INSTANCE_NAME: SearXng podSpec:
containers:
podSecurityContext: main:
runAsGroup: 0 env:
runAsUser: 0 BIND_ADDRESS: '{{ printf "0.0.0.0:%v" .Values.service.main.ports.main.port }}'
INSTANCE_NAME: SearXng
BASE_URL: ""
probes:
liveness:
path: /healthz
port: '{{ .Values.service.main.ports.main.port }}'
readiness:
path: /healthz
port: '{{ .Values.service.main.ports.main.port }}'
startup:
type: tcp
port: '{{ .Values.service.main.ports.main.port }}'
securityContext: securityContext:
readOnlyRootFilesystem: false container:
runAsNonRoot: false runAsGroup: 0
runAsUser: 0
capabilities:
disableS6Caps: true
add:
- SETUID
- SETGID
service: service:
main: main:
ports: ports:
main: main:
port: 8080 port: 8080
protocol: TCP protocol: http
targetPort: 8080
persistence: persistence:
config: config:
@@ -29,4 +47,5 @@ persistence:
mountPath: /etc/searxng mountPath: /etc/searxng
portal: portal:
enabled: true open:
enabled: true