Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow env vars to be set #23

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
23 changes: 15 additions & 8 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: {}

Expand Down Expand Up @@ -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:
Expand All @@ -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: |
Expand Down