From 101cb5405b22c65dd9eaef95185b9d4e8f879f74 Mon Sep 17 00:00:00 2001 From: Dis <397465+disconn3ct@users.noreply.github.com> Date: Fri, 24 Dec 2021 09:42:33 -0500 Subject: [PATCH] [searx] feat: enable optional resources for all containers (#1322) * feat: enable resources for all searx containers This is necessary for autoscaling Signed-off-by: Dis <397465+disconn3ct@users.noreply.github.com> --- charts/stable/searx/Chart.yaml | 2 +- charts/stable/searx/README.md | 2 +- charts/stable/searx/README_CHANGELOG.md.gotmpl | 6 ++++++ charts/stable/searx/templates/common.yaml | 12 ++++++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/charts/stable/searx/Chart.yaml b/charts/stable/searx/Chart.yaml index 649a4cbe..81e5998d 100644 --- a/charts/stable/searx/Chart.yaml +++ b/charts/stable/searx/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: 1.0.0 description: Searx is a privacy-respecting, hackable metasearch engine name: searx -version: 5.2.0 +version: 5.3.0 kubeVersion: ">=1.16.0-0" keywords: - searx diff --git a/charts/stable/searx/README.md b/charts/stable/searx/README.md index d00c6e11..cfdd9bb6 100644 --- a/charts/stable/searx/README.md +++ b/charts/stable/searx/README.md @@ -1,6 +1,6 @@ # searx -![Version: 5.2.0](https://img.shields.io/badge/Version-5.2.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) +![Version: 5.3.0](https://img.shields.io/badge/Version-5.3.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) Searx is a privacy-respecting, hackable metasearch engine diff --git a/charts/stable/searx/README_CHANGELOG.md.gotmpl b/charts/stable/searx/README_CHANGELOG.md.gotmpl index 5ba20b08..0cb9406c 100644 --- a/charts/stable/searx/README_CHANGELOG.md.gotmpl +++ b/charts/stable/searx/README_CHANGELOG.md.gotmpl @@ -9,6 +9,12 @@ All notable changes to this application Helm chart will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### [5.3.0] + +#### Added + +- Expose `resources` for all containers + ### [5.1.0] #### Changed diff --git a/charts/stable/searx/templates/common.yaml b/charts/stable/searx/templates/common.yaml index f9d827b4..6c27b74e 100644 --- a/charts/stable/searx/templates/common.yaml +++ b/charts/stable/searx/templates/common.yaml @@ -31,6 +31,10 @@ additionalContainers: - name: searx-config mountPath: /etc/caddy/Caddyfile subPath: Caddyfile + {{- with .Values.caddy.resources }} + resources: + {{- toYaml . | nindent 6 }} + {{- end }} filtron: name: filtron @@ -54,6 +58,10 @@ additionalContainers: - name: searx-config mountPath: /etc/filtron/rules.json subPath: rules.json + {{- with .Values.filtron.resources }} + resources: + {{- toYaml . | nindent 6 }} + {{- end }} morty: name: morty @@ -70,6 +78,10 @@ additionalContainers: ports: - containerPort: 3000 name: morty + {{- with .Values.morty.resources }} + resources: + {{- toYaml . | nindent 6 }} + {{- end }} {{- end -}} {{- $_ := mergeOverwrite .Values (include "searx.harcodedValues" . | fromYaml) -}}