Refactor(archrepo): migrate to nestjs

This commit is contained in:
2025-07-10 15:38:29 +08:00
parent 067b15b01d
commit be5312668c
3 changed files with 31 additions and 2 deletions

4
archrepo/configmap.env Normal file
View File

@@ -0,0 +1,4 @@
REPO_NAME=custom
ARCH_NAME=x86_64
MINIO_ENDPOINT=http://minio.konchin.com
MINIO_BUCKET=archrepo

View File

@@ -22,15 +22,35 @@ spec:
- name: http - name: http
containerPort: 80 containerPort: 80
env: env:
- name: REPO_NAME
valueFrom:
configMapKeyRef:
name: archrepo-config
key: REPO_NAME
- name: ARCH_NAME
valueFrom:
configMapKeyRef:
name: archrepo-config
key: ARCH_NAME
- name: MINIO_ENDPOINT
valueFrom:
configMapKeyRef:
name: archrepo-config
key: MINIO_ENDPOINT
- name: MINIO_BUCKET
valueFrom:
configMapKeyRef:
name: archrepo-config
key: MINIO_BUCKET
- name: MINIO_ACCESSKEY - name: MINIO_ACCESSKEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: archrepo name: archrepo-secret
key: MINIO_ACCESSKEY key: MINIO_ACCESSKEY
- name: MINIO_SECRETKEY - name: MINIO_SECRETKEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: archrepo name: archrepo-secret
key: MINIO_SECRETKEY key: MINIO_SECRETKEY
imagePullSecrets: imagePullSecrets:
- name: regcred - name: regcred

View File

@@ -11,3 +11,8 @@ resources:
- deploy.archrepo.yaml - deploy.archrepo.yaml
- svc.archrepo.yaml - svc.archrepo.yaml
- ing.archrepo.yaml - ing.archrepo.yaml
configMapGenerator:
- name: archrepo-config
envs:
- configmap.env