Skip to content

Commit 0cb0353

Browse files
committed
fix command flags
1 parent 8f0b8c7 commit 0cb0353

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

charts/ldap-sync/Chart.yaml

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

charts/ldap-sync/templates/cron.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ spec:
2222
containers:
2323
- name: ldap-sync
2424
image: {{ printf "%s:%s" .Values.image.repository .Values.image.tag | quote }}
25-
args: [ "sync", "--log-level", "0" ]
25+
args: [
26+
"sync",
27+
{{- if .Values.configs.DO_REAL_JOB }}
28+
"--do-real-job=true",
29+
{{- end }}
30+
"--log-level",
31+
{{ .Values.logLevel | quote }}
32+
]
2633
resources:
2734
{{ toYaml .Values.resources | nindent 16 }}
2835
envFrom:

charts/ldap-sync/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resources: {}
88
nodeSelector: {}
99
tolerations: []
1010
affinity: {}
11+
logLevel: 0
1112
configs:
1213
LDAP_URL: ''
1314
LDAP_BASE: ''

0 commit comments

Comments
 (0)