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 a1a0373  feat: allow env vars to be set (#23)
a1a0373 is described below

commit a1a03731f82f9bb0b326b317647512687e78ccc4
Author: Alexandre Malucelli <[email protected]>
AuthorDate: Thu Feb 6 19:09:45 2025 -0300

    feat: allow env vars to be set (#23)
---
 Chart.yaml                |  2 +-
 templates/deployment.yaml |  4 ++++
 values.yaml               | 23 +++++++++++++++--------
 3 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/Chart.yaml b/Chart.yaml
index 9761596..2e85187 100644
--- a/Chart.yaml
+++ b/Chart.yaml
@@ -20,7 +20,7 @@
 apiVersion: v2
 name: tika
 appVersion: "3.0.0.0-full"
-version: "3.0.1-full"
+version: "3.0.2-full"
 description: The official Helm chart for Apache Tika
 type: application
 keywords:
diff --git a/templates/deployment.yaml b/templates/deployment.yaml
index 1c99894..37e4987 100644
--- a/templates/deployment.yaml
+++ b/templates/deployment.yaml
@@ -60,6 +60,10 @@ spec:
           {{- if .Values.tikaConfig }}
           args: ["-c" , "/tika-config/tika-config.xml"]
           {{- end }}
+          {{- with .Values.env }}
+          env:
+            {{- toYaml . | nindent 12 }}
+          {{- end }}
           securityContext:
             {{- toYaml .Values.securityContext | nindent 12 }}
           image: "{{ .Values.image.repository }}:{{ .Values.image.tag | 
default .Chart.AppVersion }}"
diff --git a/values.yaml b/values.yaml
index 5eb676d..5cee646 100644
--- a/values.yaml
+++ b/values.yaml
@@ -23,12 +23,19 @@ image:
   repository: apache/tika
   pullPolicy: IfNotPresent
   # Overrides the image tag whose default is the chart appVersion.
-  tag: '3.0.0.0-full'
+  tag: "3.0.0.0-full"
 
 imagePullSecrets: []
-nameOverride: ''
-fullnameOverride: ''
-namespaceOverride: ''
+nameOverride: ""
+fullnameOverride: ""
+namespaceOverride: ""
+
+# Environment variables to set in the container
+# For example:
+# env:
+#   - name: SOME_VAR
+#     value: "some value"
+# env: []
 
 serviceAccount:
   # Specifies whether a service account should be created
@@ -37,7 +44,7 @@ serviceAccount:
   annotations: {}
   # The name of the service account to use.
   # If not set and create is true, a name is generated using the fullname 
template
-  name: ''
+  name: ""
 
 podAnnotations: {}
 
@@ -93,10 +100,10 @@ resources:
   # resources, such as Minikube. If you do want to specify resources, 
uncomment the following
   # lines, adjust them as necessary, and remove the curly braces after 
'resources:'.
   limits:
-    cpu: '2'
+    cpu: "2"
     memory: 2000Mi
   requests:
-    cpu: '1'
+    cpu: "1"
     memory: 1500Mi
 
 autoscaling:
@@ -121,7 +128,7 @@ networkPolicy:
   allowExternal: false
 
 config:
-  base_url: 'http://localhost/'
+  base_url: "http://localhost/";
 # Use the below block to use custom tika-config.xml.
 # Refer https://tika.apache.org/2.9.1/configuring.html to know more about 
configuring apache-tika
 # tikaConfig: |

Reply via email to