Skip to content

Commit aaef414

Browse files
author
iops
committed
move values to chart
1 parent 63661c3 commit aaef414

File tree

4 files changed

+29
-13
lines changed

4 files changed

+29
-13
lines changed

charts/ldap/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: ldap
3-
version: 0.0.2
3+
version: 0.0.3

charts/ldap/templates/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ data:
1414
bind 0.0.0.0:389
1515
mode tcp
1616
balance roundrobin
17-
{{- if .Values.ldap_servers }}
18-
{{ .Values.ldap_servers | nindent 6 }}
17+
{{- if .Values.servers }}
18+
{{ .Values.servers | nindent 6 }}
1919
{{- end }}

charts/ldap/templates/deployment.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
labels:
77
app: ldap
88
spec:
9-
replicas: {{ .Values.ldap.replicas }}
9+
replicas: {{ .Values.replicas }}
1010
selector:
1111
matchLabels:
1212
app: ldap
@@ -19,10 +19,10 @@ spec:
1919
spec:
2020
containers:
2121
- name: ldap
22-
image: {{ .Values.ldap.image.repository }}:{{ .Values.ldap.image.tag }}
23-
imagePullPolicy: {{ .Values.ldap.image.pullPolicy }}
22+
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
23+
imagePullPolicy: {{ .Values.image.pullPolicy }}
2424
resources:
25-
{{ toYaml .Values.ldap.resources | nindent 10 }}
25+
{{ toYaml .Values.resources | nindent 10 }}
2626
ports:
2727
- containerPort: 389
2828
name: tcp
@@ -32,17 +32,17 @@ spec:
3232
mountPath: /usr/local/etc/haproxy/haproxy.cfg
3333
subPath: haproxy.cfg
3434
terminationGracePeriodSeconds: 10
35-
{{- if .Values.ldap.nodeSelector }}
35+
{{- if .Values.nodeSelector }}
3636
nodeSelector:
37-
{{ toYaml .Values.ldap.nodeSelector | nindent 8 }}
37+
{{ toYaml .Values.nodeSelector | nindent 8 }}
3838
{{- end }}
39-
{{- if .Values.ldap.tolerations }}
39+
{{- if .Values.tolerations }}
4040
tolerations:
41-
{{ toYaml .Values.ldap.tolerations | nindent 8 }}
41+
{{ toYaml .Values.tolerations | nindent 8 }}
4242
{{- end }}
43-
{{- if .Values.ldap.affinity }}
43+
{{- if .Values.affinity }}
4444
affinity:
45-
{{ toYaml .Values.ldap.affinity | nindent 8 }}
45+
{{ toYaml .Values.affinity | nindent 8 }}
4646
{{- end }}
4747
volumes:
4848
- name: ldap-config

charts/ldap/values.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
image:
2+
repository: "haproxy"
3+
tag: "2.3.6"
4+
pullPolicy: IfNotPresent
5+
replicas: 1
6+
servers: []
7+
resources:
8+
requests:
9+
memory: 100Mi
10+
cpu: 100m
11+
limits:
12+
memory: 1Gi
13+
cpu: 2
14+
nodeSelector: {}
15+
tolerations: []
16+
affinity: {}

0 commit comments

Comments
 (0)