Skip to content

Commit

Permalink
Fix caCertData to use root data object instead of current context
Browse files Browse the repository at this point in the history
  • Loading branch information
devasmith committed Aug 12, 2024
1 parent 9108ce9 commit e17c7bf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/netbox/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ data:
AUTH_LDAP_BIND_DN: {{ $.Values.remoteAuth.ldap.bindDn | quote }}
AUTH_LDAP_START_TLS: {{ toJson $.Values.remoteAuth.ldap.startTls }}
LDAP_IGNORE_CERT_ERRORS: {{ toJson $.Values.remoteAuth.ldap.ignoreCertErrors }}
{{- if .Values.remoteAuth.ldap.caCertData }}
{{- if $.Values.remoteAuth.ldap.caCertData }}
LDAP_CA_CERT_FILE: /etc/netbox/config/ldap/ldap_ca.crt
{{- end }}
AUTH_LDAP_USER_DN_TEMPLATE: {{ default nil $.Values.remoteAuth.ldap.userDnTemplate }}
Expand All @@ -307,9 +307,9 @@ data:
AUTH_LDAP_MIRROR_GROUPS: {{ toJson $.Values.remoteAuth.ldap.mirrorGroups }}
AUTH_LDAP_MIRROR_GROUPS_EXCEPT: {{ toJson $.Values.remoteAuth.ldap.mirrorGroupsExcept }}
AUTH_LDAP_CACHE_TIMEOUT: {{ int $.Values.remoteAuth.ldap.cacheTimeout }}
{{- if .Values.remoteAuth.ldap.caCertData }}
{{- if $.Values.remoteAuth.ldap.caCertData }}
ldap_ca.crt: |-
{{- toYaml .Values.remoteAuth.ldap.caCertData | nindent 4 }}
{{- toYaml $.Values.remoteAuth.ldap.caCertData | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/netbox/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
mountPath: /etc/netbox/config/ldap/ldap_config.py
subPath: ldap_config.py
readOnly: true
{{- if .Values.remoteAuth.ldap.caCertData }}
{{- if $.Values.remoteAuth.ldap.caCertData }}
- name: config
mountPath: /etc/netbox/config/ldap/ldap_ca.crt
subPath: ldap_ca.crt
Expand Down
2 changes: 1 addition & 1 deletion charts/netbox/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ spec:
mountPath: /etc/netbox/config/ldap/ldap_config.py
subPath: ldap_config.py
readOnly: true
{{- if .Values.remoteAuth.ldap.caCertData }}
{{- if $.Values.remoteAuth.ldap.caCertData }}
- name: config
mountPath: /etc/netbox/config/ldap/ldap_ca.crt
subPath: ldap_ca.crt
Expand Down
2 changes: 1 addition & 1 deletion charts/netbox/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ spec:
mountPath: /etc/netbox/config/ldap/ldap_config.py
subPath: ldap_config.py
readOnly: true
{{- if .Values.remoteAuth.ldap.caCertData }}
{{- if $.Values.remoteAuth.ldap.caCertData }}
- name: config
mountPath: /etc/netbox/config/ldap/ldap_ca.crt
subPath: ldap_ca.crt
Expand Down

0 comments on commit e17c7bf

Please sign in to comment.