From 33c5501fc9a93b43a9357762f3b1f434acd89e80 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Wed, 15 Apr 2026 10:56:22 +0800 Subject: [PATCH] fix: remove resources from deployment templates to fix K8s schema validation --- deploy/templates/app-deployment.yaml | 2 -- deploy/templates/email-worker-deployment.yaml | 2 -- deploy/templates/frontend-deployment.yaml | 2 -- deploy/templates/git-hook-deployment.yaml | 2 -- deploy/templates/gitserver-deployment.yaml | 2 -- deploy/templates/static-deployment.yaml | 4 ---- 6 files changed, 14 deletions(-) diff --git a/deploy/templates/app-deployment.yaml b/deploy/templates/app-deployment.yaml index 3688c55..49f169b 100644 --- a/deploy/templates/app-deployment.yaml +++ b/deploy/templates/app-deployment.yaml @@ -103,8 +103,6 @@ spec: periodSeconds: {{ .Values.app.startupProbe.periodSeconds }} failureThreshold: {{ .Values.app.startupProbe.failureThreshold }} {{- end }} - resources: - {{- toYaml .Values.app.resources | nindent 10 }} {{- if .Values.storage.enabled }} volumeMounts: - name: shared-data diff --git a/deploy/templates/email-worker-deployment.yaml b/deploy/templates/email-worker-deployment.yaml index 436568d..9216f9c 100644 --- a/deploy/templates/email-worker-deployment.yaml +++ b/deploy/templates/email-worker-deployment.yaml @@ -41,8 +41,6 @@ spec: - name: {{ .name }} value: {{ .value | quote }} {{- end }} - resources: - {{- toYaml .Values.emailWorker.resources | nindent 10 }} {{- if .Values.emailWorker.livenessProbe }} livenessProbe: exec: diff --git a/deploy/templates/frontend-deployment.yaml b/deploy/templates/frontend-deployment.yaml index 149d216..8182ffe 100644 --- a/deploy/templates/frontend-deployment.yaml +++ b/deploy/templates/frontend-deployment.yaml @@ -33,8 +33,6 @@ spec: - name: http containerPort: 80 protocol: TCP - resources: - {{- toYaml $svc.resources | nindent 10 }} livenessProbe: httpGet: path: / diff --git a/deploy/templates/git-hook-deployment.yaml b/deploy/templates/git-hook-deployment.yaml index 0a109e7..a1f48f2 100644 --- a/deploy/templates/git-hook-deployment.yaml +++ b/deploy/templates/git-hook-deployment.yaml @@ -53,8 +53,6 @@ spec: - name: {{ .name }} value: {{ .value | quote }} {{- end }} - resources: - {{- toYaml .Values.gitHook.resources | nindent 10 }} {{- if .Values.gitHook.livenessProbe }} livenessProbe: exec: diff --git a/deploy/templates/gitserver-deployment.yaml b/deploy/templates/gitserver-deployment.yaml index c8b3a43..c00b639 100644 --- a/deploy/templates/gitserver-deployment.yaml +++ b/deploy/templates/gitserver-deployment.yaml @@ -69,8 +69,6 @@ spec: - name: {{ .name }} value: {{ .value | quote }} {{- end }} - resources: - {{- toYaml $svc.resources | nindent 10 }} {{- if $svc.livenessProbe }} livenessProbe: tcpSocket: diff --git a/deploy/templates/static-deployment.yaml b/deploy/templates/static-deployment.yaml index 5911a9c..54f6af9 100644 --- a/deploy/templates/static-deployment.yaml +++ b/deploy/templates/static-deployment.yaml @@ -49,10 +49,6 @@ spec: - name: {{ .name }} value: {{ .value | quote }} {{- end }} - {{- if $svc.resources }} - resources: - {{- toYaml $svc.resources | nindent 10 }} - {{- end }} {{- if $svc.livenessProbe }} livenessProbe: httpGet: