issues/27: test contour adminpanel cabinet Redmine fixes
This commit is contained in:
@@ -6,7 +6,8 @@ metadata:
|
||||
data:
|
||||
env.js: |
|
||||
window.__ENV__ = {
|
||||
API_BASE_URL: {{ .Values.runtimeEnv.API_BASE_URL | quote }}
|
||||
API_BASE_URL: {{ .Values.runtimeEnv.API_BASE_URL | quote }}{{- if .Values.runtimeEnv.SENTRY_DSN }},
|
||||
SENTRY_DSN: {{ .Values.runtimeEnv.SENTRY_DSN | quote }}{{- end }}
|
||||
};
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
@@ -40,6 +41,17 @@ spec:
|
||||
- name: env-js
|
||||
mountPath: /config/env.js
|
||||
subPath: env.js
|
||||
lifecycle:
|
||||
postStart:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
API_URL=$(grep -o 'API_BASE_URL: "[^"]*"' /config/env.js | sed 's/.*"\([^"]*\)".*/\1/')
|
||||
if [ -n "$API_URL" ]; then
|
||||
find /usr/share/nginx/html/assets -name '*.js' -exec sed -i "s|https://api.sovamed.ru|${API_URL}|g" {} +
|
||||
fi
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumes:
|
||||
|
||||
@@ -19,6 +19,10 @@ metadata:
|
||||
name: cabinet-nginx-config
|
||||
namespace: {{ .Values.namespace }}
|
||||
data:
|
||||
php-custom.ini: |
|
||||
display_errors=Off
|
||||
log_errors=On
|
||||
error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED
|
||||
default.conf: |
|
||||
server {
|
||||
listen 8080;
|
||||
@@ -94,6 +98,9 @@ spec:
|
||||
mountPath: /app/var/cache
|
||||
- name: var-log
|
||||
mountPath: /app/var/log
|
||||
- name: php-config
|
||||
mountPath: /usr/local/etc/php/conf.d/99-sova.ini
|
||||
subPath: php-custom.ini
|
||||
resources:
|
||||
{{- toYaml .Values.resources.php | nindent 12 }}
|
||||
- name: nginx
|
||||
@@ -128,6 +135,9 @@ spec:
|
||||
mountPath: /app/var/cache
|
||||
- name: var-log
|
||||
mountPath: /app/var/log
|
||||
- name: php-config
|
||||
mountPath: /usr/local/etc/php/conf.d/99-sova.ini
|
||||
subPath: php-custom.ini
|
||||
- name: copy-public
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
command: ["sh", "-c", "cp -a /app/public/. /public/"]
|
||||
@@ -140,6 +150,9 @@ spec:
|
||||
- name: nginx-config
|
||||
configMap:
|
||||
name: cabinet-nginx-config
|
||||
- name: php-config
|
||||
configMap:
|
||||
name: cabinet-nginx-config
|
||||
- name: var-cache
|
||||
emptyDir: {}
|
||||
- name: var-log
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: redmine
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
version: 32.2.2
|
||||
digest: sha256:fc24d3b88ff249a81008f44b7c5dfc03084d38e8aae4bbfe64ad1c5dec05b6e8
|
||||
generated: "2026-05-29T13:57:14.119328+03:00"
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: v2
|
||||
name: redmine
|
||||
description: Redmine issue tracker for Sova test contour
|
||||
type: application
|
||||
version: 0.1.0
|
||||
dependencies:
|
||||
- name: redmine
|
||||
version: 32.2.2
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
Binary file not shown.
@@ -0,0 +1,59 @@
|
||||
namespace: redmine
|
||||
|
||||
global:
|
||||
security:
|
||||
allowInsecureImages: true
|
||||
|
||||
redmine:
|
||||
databaseType: postgresql
|
||||
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: bitnamilegacy/redmine
|
||||
tag: 6.0.5-debian-12-r0
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
redmineUsername: admin
|
||||
redminePassword: SovaRedmineTest2026!
|
||||
redmineEmail: admin@sova.local
|
||||
|
||||
postgresql:
|
||||
enabled: false
|
||||
|
||||
externalDatabase:
|
||||
host: postgresql-test.sova-data-test.svc.cluster.local
|
||||
port: 5432
|
||||
user: sova_test
|
||||
password: sova_test_pass
|
||||
database: redmine_test
|
||||
|
||||
mariadb:
|
||||
enabled: false
|
||||
|
||||
smtp:
|
||||
enabled: true
|
||||
host: mailpit.sova-mocks.svc.cluster.local
|
||||
port: 1025
|
||||
user: ""
|
||||
password: ""
|
||||
protocol: plain
|
||||
from: redmine@sova.local
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
ingressClassName: nginx
|
||||
hostname: redmine.sova.local
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 1Gi
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 2Gi
|
||||
@@ -0,0 +1,4 @@
|
||||
# Defaults shared across contours.
|
||||
redmine:
|
||||
service:
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user