You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by le...@apache.org on 2023/03/03 17:31:37 UTC

[tika-helm] branch main updated: feat(hpa): Allow setting apiVersion through values file (#9)

This is an automated email from the ASF dual-hosted git repository.

lewismc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika-helm.git


The following commit(s) were added to refs/heads/main by this push:
     new 436d6e2  feat(hpa): Allow setting apiVersion through values file (#9)
436d6e2 is described below

commit 436d6e2c5d036ac6ff57151f46d80a783931db39
Author: Stijn Brouwers <st...@bdcommit.com>
AuthorDate: Fri Mar 3 18:31:31 2023 +0100

    feat(hpa): Allow setting apiVersion through values file (#9)
---
 templates/hpa.yaml | 2 +-
 values.yaml        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/hpa.yaml b/templates/hpa.yaml
index 338fd5f..178c189 100644
--- a/templates/hpa.yaml
+++ b/templates/hpa.yaml
@@ -17,7 +17,7 @@
 
 ---
 {{- if .Values.autoscaling.enabled }}
-apiVersion: autoscaling/v2beta1
+apiVersion: {{ .Values.autoscaling.apiVersion }}
 kind: HorizontalPodAutoscaler
 metadata:
   name: {{ include "tika-helm.fullname" . }}
diff --git a/values.yaml b/values.yaml
index c74eec2..d8cc8bf 100644
--- a/values.yaml
+++ b/values.yaml
@@ -97,6 +97,7 @@ resources:
     memory: 1500Mi
 
 autoscaling:
+  apiVersion: autoscaling/v2beta1
   enabled: false
   minReplicas: 1
   maxReplicas: 100