From a2bc3eaa91cebaec52903ba83656da34677f1f56 Mon Sep 17 00:00:00 2001 From: ci-bot Date: Fri, 12 Apr 2024 23:22:03 +0800 Subject: [PATCH] update ks-core helm chart --- src/test/ks-core/templates/ks-console.yml | 15 +++++++-------- src/test/ks-core/templates/services.yml | 3 +-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/test/ks-core/templates/ks-console.yml b/src/test/ks-core/templates/ks-console.yml index 5bec79af..41e08c46 100644 --- a/src/test/ks-core/templates/ks-console.yml +++ b/src/test/ks-core/templates/ks-console.yml @@ -124,8 +124,8 @@ spec: - name: sys-cert emptyDir: {} {{- end }} ---- +--- apiVersion: v1 kind: Service metadata: @@ -143,17 +143,16 @@ metadata: spec: ports: - name: nginx - {{- if .Values.internalTLS }} +{{- if .Values.internalTLS }} port: 443 - {{- else }} +{{- else }} port: 80 - {{- end }} +{{- end }} protocol: TCP targetPort: 8000 - {{- with .Values.console.nodePort }} - nodePort: - {{- toYaml . | nindent 6 }} - {{- end }} + {{- with .Values.console.nodePort }} + nodePort: {{ . }} + {{- end }} selector: app: ks-console tier: frontend diff --git a/src/test/ks-core/templates/services.yml b/src/test/ks-core/templates/services.yml index 94654c80..17d38acf 100644 --- a/src/test/ks-core/templates/services.yml +++ b/src/test/ks-core/templates/services.yml @@ -19,8 +19,7 @@ spec: {{- end }} targetPort: 9090 {{- with .Values.apiserver.nodePort }} - nodePort: - {{- toYaml . | nindent 8 }} + nodePort: {{ . }} {{- end }} selector: {{- if eq (include "role" .) "host" }}