From 34bf8dbb9a4db07548788dc367b6ca8deda8556f Mon Sep 17 00:00:00 2001 From: fcomte Date: Thu, 2 Mar 2023 13:00:41 +0000 Subject: [PATCH] change to openrefine --- charts/openrefine/Chart.yaml | 2 +- charts/openrefine/templates/deployment.yaml | 7 +++++++ charts/openrefine/values.schema.json | 16 ++++++++++++++++ charts/openrefine/values.yaml | 5 +++-- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/charts/openrefine/Chart.yaml b/charts/openrefine/Chart.yaml index 4ce975b8..b8ce2d4a 100644 --- a/charts/openrefine/Chart.yaml +++ b/charts/openrefine/Chart.yaml @@ -22,7 +22,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.4.0 +version: 3.5.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/openrefine/templates/deployment.yaml b/charts/openrefine/templates/deployment.yaml index f676111d..66def851 100644 --- a/charts/openrefine/templates/deployment.yaml +++ b/charts/openrefine/templates/deployment.yaml @@ -43,6 +43,13 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.service.image.repository }}:{{ .Values.service.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.service.image.pullPolicy }} + env: + - name: REFINE_INTERFACE + value: "0.0.0.0" + - name: REFINE_MEMORY + value: "{{ .Values.service.memory }}" + - name: REFINE_DATA_DIR + value: "/data" ports: - name: http containerPort: 3333 diff --git a/charts/openrefine/values.schema.json b/charts/openrefine/values.schema.json index 7e81f1b2..4b880fb0 100644 --- a/charts/openrefine/values.schema.json +++ b/charts/openrefine/values.schema.json @@ -2,6 +2,22 @@ "$schema": "http://json-schema.org/schema#", "type": "object", "properties": { + "service": { + "description": "Your service will have at least the requested resources and never more than its limits. No limit for a resource and you can consume everything left on the host machine.", + "type": "object", + "properties": { + "memory": { + "description": "Java memory", + "type": "string", + "default": "1024M", + "render": "slider", + "sliderMin": 1024, + "sliderMax": 32768, + "sliderStep": 1024, + "sliderUnit": "M" + } + } + }, "resources": { "description": "Your service will have at least the requested resources and never more than its limits. No limit for a resource and you can consume everything left on the host machine.", "type": "object", diff --git a/charts/openrefine/values.yaml b/charts/openrefine/values.yaml index 393fa5ba..7c2f8d83 100644 --- a/charts/openrefine/values.yaml +++ b/charts/openrefine/values.yaml @@ -1,11 +1,12 @@ # Default values for openrefine. service: + memory: "1024M" image: - repository: "vimagick/openrefine" + repository: "easypi/openrefine" pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "" + tag: "3.7.0" security: networkPolicy: