c4e102661e
This patch set tidies up the existing charts. Fixes include: * add release_group key in yaml * fix indentation inconsistency issue * clean up the ldap chart's value.yaml to be consistent with mariaDB Change-Id: Ibd9d86603ebc6c6c31c596dc0af523eb71c083d0 Signed-off-by: Tin Lam <tin@irrational.io>
9 lines
509 B
Smarty
9 lines
509 B
Smarty
#!/bin/bash
|
|
set -xe
|
|
|
|
{{- $url := tuple "ldap" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}
|
|
{{- $port := tuple "ldap" "internal" "ldap" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
|
LDAPHOST="ldap://{{ $url }}:{{ $port }}"
|
|
ADMIN="cn={{ .Values.endpoints.ldap.auth.username }},{{ tuple .Values.endpoints.ldap.auth.domainname . | include "splitdomain" }}"
|
|
ldapadd -x -D $ADMIN -H $LDAPHOST -w {{ .Values.endpoints.ldap.auth.password }} -f /etc/sample_data.ldif
|