Skip to content

Commit f6fe430

Browse files
authored
Minor improvements to Helm chart (#819)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
1 parent 726c423 commit f6fe430

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: clotributor
33
description: Discover great opportunities to become a Cloud Native contributors
44
type: application
5-
version: 1.0.1-0
5+
version: 1.0.1-1
66
appVersion: 1.0.0
77
kubeVersion: ">= 1.19.0-0"
88
keywords:

chart/templates/apiserver_service.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ metadata:
1010
{{- toYaml . | nindent 4 }}
1111
{{- end }}
1212
spec:
13+
{{- $serviceType := default "ClusterIP" .Values.apiserver.service.type }}
14+
{{- if eq $serviceType "LoadBalancer" }}
1315
allocateLoadBalancerNodePorts: {{ .Values.apiserver.service.allocateLoadBalancerNodePorts }}
14-
type: {{ .Values.apiserver.service.type }}
16+
{{- end }}
17+
type: {{ $serviceType }}
1518
ports:
1619
{{- toYaml .Values.apiserver.service.ports | nindent 4 }}
1720
selector:

chart/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ db:
2727
host: ""
2828
port: "5432"
2929
dbname: clotributor
30-
user: postgres
31-
password: postgres
30+
user: clotributor
31+
password: clotributor
3232

3333
# Credentials
3434
creds:
@@ -115,13 +115,13 @@ postgresql:
115115
enabled: true
116116
auth:
117117
database: clotributor
118-
password: postgres
119-
username: postgres
118+
password: clotributor
119+
username: clotributor
120120
global:
121121
security:
122122
allowInsecureImages: true
123123
image:
124-
repository: docker.io/artifacthub/postgres
124+
repository: artifacthub/postgres
125125
tag: latest
126126
persistence:
127127
mountPath: /data

0 commit comments

Comments
 (0)