Skip to content

Commit f594cb6

Browse files
authored
Some refactoring in Helm chart (#373)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
1 parent e258810 commit f594cb6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

charts/clowarden/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: clowarden
33
description: CLOWarden is a tool that manages access to resources across multiple services
44
type: application
5-
version: 0.2.3-0
5+
version: 0.2.3-1
66
appVersion: 0.2.2
77
kubeVersion: ">= 1.19.0-0"
88
home: https://clowarden.io

charts/clowarden/templates/server_service.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ metadata:
1010
{{- toYaml . | nindent 4 }}
1111
{{- end }}
1212
spec:
13-
{{- if eq (default "ClusterIP" .Values.server.service.type) "LoadBalancer" }}
13+
{{- $serviceType := default "ClusterIP" .Values.server.service.type }}
14+
{{- if eq $serviceType "LoadBalancer" }}
1415
allocateLoadBalancerNodePorts: {{ .Values.server.service.allocateLoadBalancerNodePorts }}
1516
{{- end }}
16-
type: {{ default "ClusterIP" .Values.server.service.type }}
17+
type: {{ $serviceType }}
1718
ports:
1819
{{- toYaml .Values.server.service.ports | nindent 4 }}
1920
selector:

0 commit comments

Comments
 (0)