refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s

- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名)
- 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块)
- docreader proto 描述符采用等长替换,保持序列化字节布局有效
- Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像
- 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
runny committed 2026-11-13 20:52:51 +08:00
1 parent 9097ee699d
commit 9058149576
3136 files changed
+18018 -18004

No files matched your search

+15 -15
View File
@@ -2,12 +2,12 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
Post-installation notes for WeKnora Helm chart.
Post-installation notes for Academy Helm chart.
Ref: https://github.com/argoproj/argo-helm/blob/main/charts/argo-cd/templates/NOTES.txt
*/}}
================================================================================
WeKnora has been installed successfully!
Academy has been installed successfully!
================================================================================
Release: {{ .Release.Name }}
@@ -15,20 +15,20 @@ Namespace: {{ .Release.Namespace }}
Version: {{ .Chart.AppVersion }}
--------------------------------------------------------------------------------
ACCESSING WEKNORA
ACCESSING ACADEMY
--------------------------------------------------------------------------------
{{- if .Values.ingress.enabled }}
WeKnora is accessible via Ingress:
Academy is accessible via Ingress:
URL: {{ if .Values.ingress.tls.enabled }}https{{ else }}http{{ end }}://{{ .Values.ingress.host }}
{{- else }}
To access WeKnora, use port-forwarding:
To access Academy, use port-forwarding:
# Frontend (Web UI)
kubectl port-forward svc/{{ include "weknora.serviceName" (dict "component" "frontend" "context" .) }} -n {{ .Release.Namespace }} 8080:80
kubectl port-forward svc/{{ include "academy.serviceName" (dict "component" "frontend" "context" .) }} -n {{ .Release.Namespace }} 8080:80
# Then open: http://localhost:8080
@@ -36,11 +36,11 @@ To access WeKnora, use port-forwarding:
{{- if not .Values.ingress.enabled }}
To expose WeKnora externally, enable Ingress:
To expose Academy externally, enable Ingress:
helm upgrade {{ .Release.Name }} ./helm \
--set ingress.enabled=true \
--set ingress.host=weknora.example.com
--set ingress.host=academy.example.com
{{- end }}
@@ -50,19 +50,19 @@ To expose WeKnora externally, enable Ingress:
Components deployed:
{{- if .Values.app.enabled }}
- Backend API ({{ include "weknora.app.image" . }})
- Backend API ({{ include "academy.app.image" . }})
{{- end }}
{{- if .Values.frontend.enabled }}
- Frontend UI ({{ include "weknora.frontend.image" . }})
- Frontend UI ({{ include "academy.frontend.image" . }})
{{- end }}
{{- if .Values.docreader.enabled }}
- Document Reader ({{ include "weknora.docreader.image" . }})
- Document Reader ({{ include "academy.docreader.image" . }})
{{- end }}
{{- if .Values.postgresql.enabled }}
- PostgreSQL/ParadeDB ({{ include "weknora.postgresql.image" . }})
- PostgreSQL/ParadeDB ({{ include "academy.postgresql.image" . }})
{{- end }}
{{- if .Values.redis.enabled }}
- Redis ({{ include "weknora.redis.image" . }})
- Redis ({{ include "academy.redis.image" . }})
{{- end }}
{{- if or .Values.minio.enabled .Values.neo4j.enabled .Values.qdrant.enabled }}
@@ -83,7 +83,7 @@ Optional components enabled:
CONNECTING TO LLM
--------------------------------------------------------------------------------
WeKnora requires an LLM backend. Configure via environment variables:
Academy requires an LLM backend. Configure via environment variables:
helm upgrade {{ .Release.Name }} ./helm \
--set app.extraEnv[0].name=OLLAMA_BASE_URL \
@@ -113,7 +113,7 @@ which is deprecated and no longer read by the app):
--set neo4j.password=<your-secure-password>
Access Neo4j Browser:
kubectl port-forward svc/{{ include "weknora.serviceName" (dict "component" "neo4j" "context" .) }} -n {{ .Release.Namespace }} 7474:7474 7687:7687
kubectl port-forward svc/{{ include "academy.serviceName" (dict "component" "neo4j" "context" .) }} -n {{ .Release.Namespace }} 7474:7474 7687:7687
# Open: http://localhost:7474
{{- end }}
+32 -32
View File
@@ -2,7 +2,7 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
WeKnora Helm Chart Template Helpers
Academy Helm Chart Template Helpers
Best Practices References:
- https://helm.sh/docs/chart_best_practices/templates/
@@ -12,14 +12,14 @@ Best Practices References:
{{/*
Expand the name of the chart.
*/}}
{{- define "weknora.name" -}}
{{- define "academy.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
*/}}
{{- define "weknora.fullname" -}}
{{- define "academy.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
@@ -34,9 +34,9 @@ Create a default fully qualified app name.
{{/*
Resolve a component Service name while preserving names used by existing releases.
Usage: include "weknora.serviceName" (dict "component" "postgresql" "context" .)
Usage: include "academy.serviceName" (dict "component" "postgresql" "context" .)
*/}}
{{- define "weknora.serviceName" -}}
{{- define "academy.serviceName" -}}
{{- $service := (index .context.Values .component).service | default dict -}}
{{- $legacyName := .component -}}
{{- if eq .component "postgresql" -}}
@@ -49,7 +49,7 @@ Usage: include "weknora.serviceName" (dict "component" "postgresql" "context" .)
Create chart name and version as used by the chart label.
Ref: https://helm.sh/docs/chart_best_practices/labels/
*/}}
{{- define "weknora.chart" -}}
{{- define "academy.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
@@ -57,39 +57,39 @@ Ref: https://helm.sh/docs/chart_best_practices/labels/
Common labels following Kubernetes recommended labels.
Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
*/}}
{{- define "weknora.labels" -}}
helm.sh/chart: {{ include "weknora.chart" . }}
{{ include "weknora.selectorLabels" . }}
{{- define "academy.labels" -}}
helm.sh/chart: {{ include "academy.chart" . }}
{{ include "academy.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: weknora
app.kubernetes.io/part-of: academy
{{- end }}
{{/*
Selector labels
*/}}
{{- define "weknora.selectorLabels" -}}
app.kubernetes.io/name: {{ include "weknora.name" . }}
{{- define "academy.selectorLabels" -}}
app.kubernetes.io/name: {{ include "academy.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Component labels - use for individual components
Usage: {{ include "weknora.componentLabels" (dict "component" "app" "context" .) }}
Usage: {{ include "academy.componentLabels" (dict "component" "app" "context" .) }}
*/}}
{{- define "weknora.componentLabels" -}}
{{ include "weknora.labels" .context }}
{{- define "academy.componentLabels" -}}
{{ include "academy.labels" .context }}
app.kubernetes.io/component: {{ .component }}
{{- end }}
{{/*
Component selector labels
Usage: {{ include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) }}
Usage: {{ include "academy.componentSelectorLabels" (dict "component" "app" "context" .) }}
*/}}
{{- define "weknora.componentSelectorLabels" -}}
{{ include "weknora.selectorLabels" .context }}
{{- define "academy.componentSelectorLabels" -}}
{{ include "academy.selectorLabels" .context }}
app.kubernetes.io/component: {{ .component }}
{{- end }}
@@ -97,9 +97,9 @@ app.kubernetes.io/component: {{ .component }}
Create the name of the service account to use.
Ref: https://helm.sh/docs/chart_best_practices/rbac/
*/}}
{{- define "weknora.serviceAccountName" -}}
{{- define "academy.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "weknora.fullname" .) .Values.serviceAccount.name }}
{{- default (include "academy.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
@@ -108,11 +108,11 @@ Ref: https://helm.sh/docs/chart_best_practices/rbac/
{{/*
Secret name - supports existing secret
*/}}
{{- define "weknora.secretName" -}}
{{- define "academy.secretName" -}}
{{- if .Values.secrets.existingSecret }}
{{- .Values.secrets.existingSecret }}
{{- else }}
{{- include "weknora.fullname" . }}-secrets
{{- include "academy.fullname" . }}-secrets
{{- end }}
{{- end }}
@@ -120,7 +120,7 @@ Secret name - supports existing secret
Return the app image with tag.
Defaults to Chart.appVersion if tag is not specified.
*/}}
{{- define "weknora.app.image" -}}
{{- define "academy.app.image" -}}
{{- $tag := default .Chart.AppVersion .Values.app.image.tag }}
{{- printf "%s:%s" .Values.app.image.repository $tag }}
{{- end }}
@@ -129,7 +129,7 @@ Defaults to Chart.appVersion if tag is not specified.
Return the frontend image with tag.
Defaults to Chart.appVersion if tag is not specified.
*/}}
{{- define "weknora.frontend.image" -}}
{{- define "academy.frontend.image" -}}
{{- $tag := default .Chart.AppVersion .Values.frontend.image.tag }}
{{- printf "%s:%s" .Values.frontend.image.repository $tag }}
{{- end }}
@@ -138,7 +138,7 @@ Defaults to Chart.appVersion if tag is not specified.
Return the docreader image with tag.
Defaults to Chart.appVersion if tag is not specified.
*/}}
{{- define "weknora.docreader.image" -}}
{{- define "academy.docreader.image" -}}
{{- $tag := default .Chart.AppVersion .Values.docreader.image.tag }}
{{- printf "%s:%s" .Values.docreader.image.repository $tag }}
{{- end }}
@@ -146,28 +146,28 @@ Defaults to Chart.appVersion if tag is not specified.
{{/*
Return the PostgreSQL image with tag.
*/}}
{{- define "weknora.postgresql.image" -}}
{{- define "academy.postgresql.image" -}}
{{- printf "%s:%s" .Values.postgresql.image.repository .Values.postgresql.image.tag }}
{{- end }}
{{/*
Return the Redis image with tag.
*/}}
{{- define "weknora.redis.image" -}}
{{- define "academy.redis.image" -}}
{{- printf "%s:%s" .Values.redis.image.repository .Values.redis.image.tag }}
{{- end }}
{{/*
Return the Neo4j image with tag.
*/}}
{{- define "weknora.neo4j.image" -}}
{{- define "academy.neo4j.image" -}}
{{- printf "%s:%s" .Values.neo4j.image.repository .Values.neo4j.image.tag }}
{{- end }}
{{/*
Create image pull secrets list.
*/}}
{{- define "weknora.imagePullSecrets" -}}
{{- define "academy.imagePullSecrets" -}}
{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 2 }}
@@ -177,7 +177,7 @@ imagePullSecrets:
{{/*
Return the storage class name.
*/}}
{{- define "weknora.storageClass" -}}
{{- define "academy.storageClass" -}}
{{- if .Values.global.storageClass }}
{{- if eq .Values.global.storageClass "-" }}
storageClassName: ""
@@ -191,7 +191,7 @@ storageClassName: {{ .Values.global.storageClass | quote }}
Pod security context.
Merges global defaults with component-specific overrides.
*/}}
{{- define "weknora.podSecurityContext" -}}
{{- define "academy.podSecurityContext" -}}
{{- $global := .Values.global.podSecurityContext | default dict }}
{{- $component := .componentSecurityContext | default dict }}
{{- $merged := merge $component $global }}
@@ -204,7 +204,7 @@ securityContext:
{{/*
Container security context.
*/}}
{{- define "weknora.containerSecurityContext" -}}
{{- define "academy.containerSecurityContext" -}}
{{- if . }}
securityContext:
{{- toYaml . | nindent 2 }}
+27 -27
View File
@@ -2,21 +2,21 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
WeKnora Backend API Server Deployment and Service.
Academy Backend API Server Deployment and Service.
*/}}
{{- if .Values.app.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "weknora.fullname" . }}-app
name: {{ include "academy.fullname" . }}-app
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
spec:
replicas: {{ .Values.app.replicaCount }}
selector:
matchLabels:
{{- include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 6 }}
{{- include "academy.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 6 }}
strategy:
{{- $strategy := .Values.app.strategy | default dict }}
{{- $strategyType := $strategy.type | default "RollingUpdate" }}
@@ -31,17 +31,17 @@ spec:
template:
metadata:
labels:
{{- include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 8 }}
{{- include "academy.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 8 }}
spec:
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
{{- include "academy.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "academy.serviceAccountName" . }}
{{- with .Values.app.podSecurityContext | default .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: app
image: {{ include "weknora.app.image" . }}
image: {{ include "academy.app.image" . }}
imagePullPolicy: {{ .Values.app.image.pullPolicy }}
{{- with .Values.app.securityContext }}
securityContext:
@@ -63,37 +63,37 @@ spec:
- name: DB_DRIVER
value: "postgres"
- name: DB_HOST
value: {{ include "weknora.serviceName" (dict "component" "postgresql" "context" .) | quote }}
value: {{ include "academy.serviceName" (dict "component" "postgresql" "context" .) | quote }}
- name: DB_PORT
value: "5432"
- name: DB_USER
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: DB_USER
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: DB_PASSWORD
- name: DB_NAME
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: DB_NAME
# Redis configuration
- name: REDIS_ADDR
value: {{ printf "%s:6379" (include "weknora.serviceName" (dict "component" "redis" "context" .)) | quote }}
value: {{ printf "%s:6379" (include "academy.serviceName" (dict "component" "redis" "context" .)) | quote }}
- name: REDIS_USERNAME
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: REDIS_USERNAME
optional: true
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: REDIS_PASSWORD
- name: REDIS_DB
value: "0"
@@ -105,12 +105,12 @@ spec:
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: JWT_SECRET
- name: SYSTEM_AES_KEY
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: SYSTEM_AES_KEY
# Retrieval & Storage
- name: RETRIEVE_DRIVER
@@ -121,7 +121,7 @@ spec:
value: {{ .Values.app.env.LOCAL_STORAGE_BASE_DIR | quote }}
# Document reader
- name: DOCREADER_ADDR
value: {{ printf "%s:50051" (include "weknora.serviceName" (dict "component" "docreader" "context" .)) | quote }}
value: {{ printf "%s:50051" (include "academy.serviceName" (dict "component" "docreader" "context" .)) | quote }}
# Processing
- name: AUTO_RECOVER_DIRTY
value: {{ .Values.app.env.AUTO_RECOVER_DIRTY | quote }}
@@ -130,8 +130,8 @@ spec:
# Docker sandbox is off unless the deployer opts in. A workspace
# admin who can save a Docker config can create containers on
# whatever Engine API this process can reach (often host root).
- name: WEKNORA_SANDBOX_DOCKER_ENABLED
value: {{ .Values.app.env.WEKNORA_SANDBOX_DOCKER_ENABLED | default "false" | quote }}
- name: ACADEMY_SANDBOX_DOCKER_ENABLED
value: {{ .Values.app.env.ACADEMY_SANDBOX_DOCKER_ENABLED | default "false" | quote }}
{{- if .Values.neo4j.enabled }}
# Neo4j configuration (for GraphRAG)
# NEO4J_ENABLE 是知识图谱的唯一开关(Go 代码认它,不认 ENABLE_GRAPH_RAG)。
@@ -139,16 +139,16 @@ spec:
- name: NEO4J_ENABLE
value: "true"
- name: NEO4J_URI
value: {{ printf "bolt://%s:7687" (include "weknora.serviceName" (dict "component" "neo4j" "context" .)) | quote }}
value: {{ printf "bolt://%s:7687" (include "academy.serviceName" (dict "component" "neo4j" "context" .)) | quote }}
- name: NEO4J_USERNAME
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: NEO4J_USERNAME
- name: NEO4J_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: NEO4J_PASSWORD
{{- end }}
{{- with .Values.app.extraEnv }}
@@ -172,7 +172,7 @@ spec:
- name: data-files
{{- if .Values.dataFiles.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.dataFiles.persistence.existingClaim | default (printf "%s-data-files" (include "weknora.fullname" .)) }}
claimName: {{ .Values.dataFiles.persistence.existingClaim | default (printf "%s-data-files" (include "academy.fullname" .)) }}
{{- else }}
emptyDir: {}
{{- end }}
@@ -192,14 +192,14 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ include "weknora.serviceName" (dict "component" "app" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "app" "context" .) | quote }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
spec:
type: {{ .Values.app.service.type }}
selector:
{{- include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 4 }}
{{- include "academy.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 4 }}
ports:
- name: http
port: {{ .Values.app.service.port }}
+11 -11
View File
@@ -2,21 +2,21 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
WeKnora Document Reader (gRPC) Deployment and Service.
Academy Document Reader (gRPC) Deployment and Service.
*/}}
{{- if .Values.docreader.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "weknora.fullname" . }}-docreader
name: {{ include "academy.fullname" . }}-docreader
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
spec:
replicas: {{ .Values.docreader.replicaCount }}
selector:
matchLabels:
{{- include "weknora.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 6 }}
{{- include "academy.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 6 }}
strategy:
type: RollingUpdate
rollingUpdate:
@@ -25,17 +25,17 @@ spec:
template:
metadata:
labels:
{{- include "weknora.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 8 }}
{{- include "academy.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 8 }}
spec:
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
{{- include "academy.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "academy.serviceAccountName" . }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: docreader
image: {{ include "weknora.docreader.image" . }}
image: {{ include "academy.docreader.image" . }}
imagePullPolicy: {{ .Values.docreader.image.pullPolicy }}
{{- with .Values.docreader.securityContext }}
securityContext:
@@ -87,14 +87,14 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ include "weknora.serviceName" (dict "component" "docreader" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "docreader" "context" .) | quote }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
spec:
type: {{ .Values.docreader.service.type }}
selector:
{{- include "weknora.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
{{- include "academy.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
ports:
- name: grpc
port: {{ .Values.docreader.service.port }}
+12 -12
View File
@@ -2,21 +2,21 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
WeKnora Frontend Web UI Deployment and Service.
Academy Frontend Web UI Deployment and Service.
*/}}
{{- if .Values.frontend.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "weknora.fullname" . }}-frontend
name: {{ include "academy.fullname" . }}-frontend
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
spec:
replicas: {{ .Values.frontend.replicaCount }}
selector:
matchLabels:
{{- include "weknora.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 6 }}
{{- include "academy.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 6 }}
strategy:
type: RollingUpdate
rollingUpdate:
@@ -25,17 +25,17 @@ spec:
template:
metadata:
labels:
{{- include "weknora.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 8 }}
{{- include "academy.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 8 }}
spec:
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
{{- include "academy.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "academy.serviceAccountName" . }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: frontend
image: {{ include "weknora.frontend.image" . }}
image: {{ include "academy.frontend.image" . }}
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
{{- with .Values.frontend.securityContext }}
securityContext:
@@ -43,7 +43,7 @@ spec:
{{- end }}
env:
- name: APP_HOST
value: {{ .Values.frontend.appHost | default (include "weknora.serviceName" (dict "component" "app" "context" .)) | quote }}
value: {{ .Values.frontend.appHost | default (include "academy.serviceName" (dict "component" "app" "context" .)) | quote }}
- name: APP_PORT
value: {{ .Values.frontend.appPort | default .Values.app.service.port | quote }}
- name: MAX_FILE_SIZE_MB
@@ -97,14 +97,14 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ include "weknora.serviceName" (dict "component" "frontend" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "frontend" "context" .) | quote }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
spec:
type: {{ .Values.frontend.service.type }}
selector:
{{- include "weknora.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
{{- include "academy.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
ports:
- name: http
port: {{ .Values.frontend.service.port }}
+5 -5
View File
@@ -2,17 +2,17 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
Ingress resource for WeKnora.
Ingress resource for Academy.
Routes /api to backend, / to frontend.
*/}}
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "weknora.fullname" . }}
name: {{ include "academy.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "ingress" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "ingress" "context" .) | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
@@ -38,7 +38,7 @@ spec:
pathType: Prefix
backend:
service:
name: {{ include "weknora.serviceName" (dict "component" "app" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "app" "context" .) | quote }}
port:
name: http
# Frontend routes - catch-all
@@ -46,7 +46,7 @@ spec:
pathType: Prefix
backend:
service:
name: {{ include "weknora.serviceName" (dict "component" "frontend" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "frontend" "context" .) | quote }}
port:
name: http
{{- end }}
+12 -12
View File
@@ -10,32 +10,32 @@ Equivalent to: docker compose --profile neo4j
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "weknora.fullname" . }}-neo4j
name: {{ include "academy.fullname" . }}-neo4j
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "weknora.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 6 }}
{{- include "academy.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 6 }}
# Use Recreate strategy for database to avoid data corruption
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "weknora.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 8 }}
{{- include "academy.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 8 }}
spec:
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
{{- include "academy.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "academy.serviceAccountName" . }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: neo4j
image: {{ include "weknora.neo4j.image" . }}
image: {{ include "academy.neo4j.image" . }}
imagePullPolicy: IfNotPresent
{{- with .Values.neo4j.securityContext }}
securityContext:
@@ -53,7 +53,7 @@ spec:
- name: NEO4J_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: NEO4J_PASSWORD
- name: NEO4J_AUTH
value: "neo4j/$(NEO4J_PASSWORD)"
@@ -95,7 +95,7 @@ spec:
- name: neo4j-data
{{- if .Values.neo4j.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.neo4j.persistence.existingClaim | default (printf "%s-neo4j" (include "weknora.fullname" .)) }}
claimName: {{ .Values.neo4j.persistence.existingClaim | default (printf "%s-neo4j" (include "academy.fullname" .)) }}
{{- else }}
emptyDir: {}
{{- end }}
@@ -115,14 +115,14 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ include "weknora.serviceName" (dict "component" "neo4j" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "neo4j" "context" .) | quote }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
spec:
type: ClusterIP
selector:
{{- include "weknora.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 4 }}
{{- include "academy.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 4 }}
ports:
- name: http
port: 7474
+14 -14
View File
@@ -9,32 +9,32 @@ ParadeDB provides vector search and BM25 full-text search capabilities.
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "weknora.fullname" . }}-postgres
name: {{ include "academy.fullname" . }}-postgres
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "weknora.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 6 }}
{{- include "academy.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 6 }}
# Use Recreate strategy for database to avoid data corruption
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "weknora.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 8 }}
{{- include "academy.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 8 }}
spec:
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
{{- include "academy.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "academy.serviceAccountName" . }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: postgres
image: {{ include "weknora.postgresql.image" . }}
image: {{ include "academy.postgresql.image" . }}
imagePullPolicy: IfNotPresent
{{- with .Values.postgresql.securityContext }}
securityContext:
@@ -48,17 +48,17 @@ spec:
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: DB_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: DB_PASSWORD
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: DB_NAME
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
@@ -91,7 +91,7 @@ spec:
- name: postgres-data
{{- if .Values.postgresql.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.postgresql.persistence.existingClaim | default (printf "%s-postgres" (include "weknora.fullname" .)) }}
claimName: {{ .Values.postgresql.persistence.existingClaim | default (printf "%s-postgres" (include "academy.fullname" .)) }}
{{- else }}
emptyDir: {}
{{- end }}
@@ -111,14 +111,14 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ include "weknora.serviceName" (dict "component" "postgresql" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "postgresql" "context" .) | quote }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
spec:
type: ClusterIP
selector:
{{- include "weknora.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 4 }}
{{- include "academy.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 4 }}
ports:
- name: postgresql
port: 5432
+12 -12
View File
@@ -10,17 +10,17 @@ Persistent Volume Claims for stateful components.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "weknora.fullname" . }}-postgres
name: {{ include "academy.fullname" . }}-postgres
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.postgresql.persistence.size }}
{{- include "weknora.storageClass" . | nindent 2 }}
{{- include "academy.storageClass" . | nindent 2 }}
---
{{- end }}
@@ -29,17 +29,17 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "weknora.fullname" . }}-redis
name: {{ include "academy.fullname" . }}-redis
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.redis.persistence.size }}
{{- include "weknora.storageClass" . | nindent 2 }}
{{- include "academy.storageClass" . | nindent 2 }}
---
{{- end }}
@@ -48,17 +48,17 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "weknora.fullname" . }}-neo4j
name: {{ include "academy.fullname" . }}-neo4j
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.neo4j.persistence.size }}
{{- include "weknora.storageClass" . | nindent 2 }}
{{- include "academy.storageClass" . | nindent 2 }}
---
{{- end }}
@@ -67,15 +67,15 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "weknora.fullname" . }}-data-files
name: {{ include "academy.fullname" . }}-data-files
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "storage" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "storage" "context" .) | nindent 4 }}
spec:
accessModes:
{{- toYaml (.Values.dataFiles.persistence.accessModes | default (list "ReadWriteOnce")) | nindent 4 }}
resources:
requests:
storage: {{ .Values.dataFiles.persistence.size }}
{{- include "weknora.storageClass" . | nindent 2 }}
{{- include "academy.storageClass" . | nindent 2 }}
{{- end }}
+12 -12
View File
@@ -9,32 +9,32 @@ Redis is used for stream management and async task queuing.
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "weknora.fullname" . }}-redis
name: {{ include "academy.fullname" . }}-redis
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "weknora.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 6 }}
{{- include "academy.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 6 }}
# Use Recreate strategy to avoid data corruption
strategy:
type: Recreate
template:
metadata:
labels:
{{- include "weknora.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 8 }}
{{- include "academy.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 8 }}
spec:
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
{{- include "academy.imagePullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "academy.serviceAccountName" . }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: redis
image: {{ include "weknora.redis.image" . }}
image: {{ include "academy.redis.image" . }}
imagePullPolicy: IfNotPresent
{{- with .Values.redis.securityContext }}
securityContext:
@@ -52,7 +52,7 @@ spec:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "weknora.secretName" . }}
name: {{ include "academy.secretName" . }}
key: REDIS_PASSWORD
ports:
- containerPort: 6379
@@ -87,7 +87,7 @@ spec:
- name: redis-data
{{- if .Values.redis.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ .Values.redis.persistence.existingClaim | default (printf "%s-redis" (include "weknora.fullname" .)) }}
claimName: {{ .Values.redis.persistence.existingClaim | default (printf "%s-redis" (include "academy.fullname" .)) }}
{{- else }}
emptyDir: {}
{{- end }}
@@ -107,14 +107,14 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: {{ include "weknora.serviceName" (dict "component" "redis" "context" .) | quote }}
name: {{ include "academy.serviceName" (dict "component" "redis" "context" .) | quote }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
{{- include "academy.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
spec:
type: ClusterIP
selector:
{{- include "weknora.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 4 }}
{{- include "academy.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 4 }}
ports:
- name: redis
port: 6379
+4 -4
View File
@@ -2,7 +2,7 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
Secrets for WeKnora components.
Secrets for Academy components.
IMPORTANT: For production deployments, use one of these approaches:
1. Set values via --set flags during installation
@@ -17,7 +17,7 @@ randAlphaNum would re-roll on every `helm upgrade` and rotate SYSTEM_AES_KEY,
making any data encrypted with the old key unreadable
(e.g. tenants.api_key would surface as enc:v1:... in the UI).
*/}}
{{- $secretName := include "weknora.secretName" . }}
{{- $secretName := include "academy.secretName" . }}
{{- $existing := lookup "v1" "Secret" .Release.Namespace $secretName }}
{{- $existingSystemKey := "" }}
{{- if and $existing $existing.data }}
@@ -32,7 +32,7 @@ metadata:
name: {{ $secretName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.labels" . | nindent 4 }}
{{- include "academy.labels" . | nindent 4 }}
type: Opaque
stringData:
# Database credentials
@@ -45,7 +45,7 @@ stringData:
# Application secrets
JWT_SECRET: {{ required "secrets.jwtSecret is required" .Values.secrets.jwtSecret | quote }}
# SYSTEM_AES_KEY 加密:tenants.api_key、模型 API key、向量库凭证、web search provider key、
# WeKnoraCloud.AppSecret 等。(TENANT_AES_KEY 已废弃:v0.4.0 起加密统一用 SYSTEM_AES_KEY,
# AcademyCloud.AppSecret 等。(TENANT_AES_KEY 已废弃:v0.4.0 起加密统一用 SYSTEM_AES_KEY,
# Go 主应用不再读取 TENANT_AES_KEY,已从 Secret 中移除。)
SYSTEM_AES_KEY: {{ $systemAesKey | quote }}
{{- if .Values.neo4j.enabled }}
+3 -3
View File
@@ -2,17 +2,17 @@
Copyright 2025 Tencent
SPDX-License-Identifier: MIT
ServiceAccount for WeKnora components.
ServiceAccount for Academy components.
Ref: https://helm.sh/docs/chart_best_practices/rbac/
*/}}
{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "weknora.serviceAccountName" . }}
name: {{ include "academy.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "weknora.labels" . | nindent 4 }}
{{- include "academy.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}