Fix: fix multicluster template bug (#2333)

This commit is contained in:
Somefive
2021-09-22 14:56:58 +08:00
committed by GitHub
parent 4379a46a79
commit 89c697ca87

View File

@@ -52,6 +52,7 @@ spec:
{{- end }}
{{ end }}
---
{{ if .Values.multicluster.enabled }}
apiVersion: v1
kind: Service
metadata:
@@ -64,7 +65,9 @@ spec:
- protocol: TCP
port: {{ .Values.multicluster.clusterGateway.port }}
targetPort: {{ .Values.multicluster.clusterGateway.port }}
{{ end }}
---
{{ if .Values.multicluster.enabled }}
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
@@ -82,3 +85,4 @@ spec:
port: {{ .Values.multicluster.clusterGateway.port }}
versionPriority: 10
insecureSkipTLSVerify: true
{{ end }}