Skip to content

Commit

Permalink
Always create service for multicluster controlplane (#136)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Mar 11, 2024
1 parent c8e18ac commit 9293183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/multicluster-controlplane/templates/_validate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
{{- fail "nodeport.port should be set while nodeport is enabled" }}
{{- end }}
{{- else }}
{{/* service not exposed */}}
{{/* service exposed as ClusterIP */}}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions charts/multicluster-controlplane/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- include "validate.exposeService" . }}
{{- if or (eq .Values.nodeport.enabled true) (or (eq .Values.loadbalancer.enabled true) (eq .Values.route.enabled true)) }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -17,6 +16,8 @@ spec:
{{- end }}
{{- else if eq .Values.nodeport.enabled true }}
type: NodePort
{{- else }}
type: ClusterIP
{{- end }}
selector:
app: multicluster-controlplane
Expand All @@ -28,4 +29,3 @@ spec:
{{- if eq .Values.nodeport.enabled true }}
nodePort: {{ .Values.nodeport.port }}
{{- end }}
{{- end }}

0 comments on commit 9293183

Please sign in to comment.