issues/27: test contour adminpanel cabinet Redmine fixes
This commit is contained in:
@@ -6,7 +6,8 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
env.js: |
|
env.js: |
|
||||||
window.__ENV__ = {
|
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
|
apiVersion: apps/v1
|
||||||
@@ -40,6 +41,17 @@ spec:
|
|||||||
- name: env-js
|
- name: env-js
|
||||||
mountPath: /config/env.js
|
mountPath: /config/env.js
|
||||||
subPath: 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:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ metadata:
|
|||||||
name: cabinet-nginx-config
|
name: cabinet-nginx-config
|
||||||
namespace: {{ .Values.namespace }}
|
namespace: {{ .Values.namespace }}
|
||||||
data:
|
data:
|
||||||
|
php-custom.ini: |
|
||||||
|
display_errors=Off
|
||||||
|
log_errors=On
|
||||||
|
error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED
|
||||||
default.conf: |
|
default.conf: |
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
@@ -94,6 +98,9 @@ spec:
|
|||||||
mountPath: /app/var/cache
|
mountPath: /app/var/cache
|
||||||
- name: var-log
|
- name: var-log
|
||||||
mountPath: /app/var/log
|
mountPath: /app/var/log
|
||||||
|
- name: php-config
|
||||||
|
mountPath: /usr/local/etc/php/conf.d/99-sova.ini
|
||||||
|
subPath: php-custom.ini
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources.php | nindent 12 }}
|
{{- toYaml .Values.resources.php | nindent 12 }}
|
||||||
- name: nginx
|
- name: nginx
|
||||||
@@ -128,6 +135,9 @@ spec:
|
|||||||
mountPath: /app/var/cache
|
mountPath: /app/var/cache
|
||||||
- name: var-log
|
- name: var-log
|
||||||
mountPath: /app/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
|
- name: copy-public
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
command: ["sh", "-c", "cp -a /app/public/. /public/"]
|
command: ["sh", "-c", "cp -a /app/public/. /public/"]
|
||||||
@@ -140,6 +150,9 @@ spec:
|
|||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
configMap:
|
configMap:
|
||||||
name: cabinet-nginx-config
|
name: cabinet-nginx-config
|
||||||
|
- name: php-config
|
||||||
|
configMap:
|
||||||
|
name: cabinet-nginx-config
|
||||||
- name: var-cache
|
- name: var-cache
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: var-log
|
- 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
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: redmine-test
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: sova
|
||||||
|
source:
|
||||||
|
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/sova/sova-deploy.git
|
||||||
|
targetRevision: main
|
||||||
|
path: apps/redmine
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- values.yaml
|
||||||
|
- values-test.yaml
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: redmine
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
@@ -14,6 +14,8 @@ spec:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
- namespace: sova-mocks
|
- namespace: sova-mocks
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
|
- namespace: redmine
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
clusterResourceWhitelist:
|
clusterResourceWhitelist:
|
||||||
- group: '*'
|
- group: '*'
|
||||||
kind: '*'
|
kind: '*'
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
SELECT 'CREATE DATABASE sova_cabinet_test OWNER sova_test'
|
SELECT 'CREATE DATABASE sova_cabinet_test OWNER sova_test'
|
||||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'sova_cabinet_test')\gexec
|
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'sova_cabinet_test')\gexec
|
||||||
|
SELECT 'CREATE DATABASE redmine_test OWNER sova_test'
|
||||||
|
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'redmine_test')\gexec
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ postgresql:
|
|||||||
01-create-databases.sql: |
|
01-create-databases.sql: |
|
||||||
CREATE DATABASE sova_cabinet_test;
|
CREATE DATABASE sova_cabinet_test;
|
||||||
GRANT ALL PRIVILEGES ON DATABASE sova_cabinet_test TO sova_test;
|
GRANT ALL PRIVILEGES ON DATABASE sova_cabinet_test TO sova_test;
|
||||||
|
CREATE DATABASE redmine_test;
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE redmine_test TO sova_test;
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user