Upgrade Tornjak to image v1.2.2 (#328)
Upgrade Tornjak image to version v1.2.2 (https://github.com/spiffe/tornjak/releases/tag/v1.2.2) - Resolving issue #326 (remove an emergency patch) - Refactor and improve Tornajk image build process --------- Signed-off-by: Mariusz Sabath <[email protected]> Co-authored-by: Edwin Buck <[email protected]>
This commit is contained in:
co-authored by
Edwin Buck
parent
cfa9f78885
commit
52e5c24947
@@ -3,7 +3,7 @@ name: tornjak-frontend
|
||||
description: A Helm chart to deploy Tornjak frontend
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "v1.2.1"
|
||||
appVersion: "v1.2.2"
|
||||
home: https://github.com/spiffe/helm-charts/tree/main/charts/spire
|
||||
sources:
|
||||
- https://github.com/spiffe/tornjak
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<!-- This README.md is generated. Please edit README.md.gotmpl -->
|
||||
|
||||
  
|
||||
  
|
||||
[](https://github.com/spiffe/spiffe/blob/main/MATURITY.md#development)
|
||||
|
||||
A Helm chart to deploy Tornjak frontend
|
||||
|
||||
@@ -28,13 +28,6 @@ spec:
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
ln -s /tmp/env.js build/env.js
|
||||
npx react-inject-env set -n /tmp/env.js
|
||||
serve -s build -p $PORT_FE
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
@@ -61,6 +54,8 @@ spec:
|
||||
volumeMounts:
|
||||
- name: cache
|
||||
mountPath: /usr/src/app/node_modules/.cache
|
||||
- name: env
|
||||
mountPath: /usr/src/app/build/tmp
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -80,3 +75,5 @@ spec:
|
||||
volumes:
|
||||
- name: cache
|
||||
emptyDir: {}
|
||||
- name: env
|
||||
emptyDir: {}
|
||||
|
||||
Reference in New Issue
Block a user