github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/openldap/templates/tests/test-connection.yaml (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: "{{ include "openldap.fullname" . }}-test-connection"
     5    labels:
     6  {{ include "openldap.labels" . | indent 4 }}
     7    annotations:
     8      "helm.sh/hook": test-success
     9      "url": "ldap://{{ include "openldap.fullname" . }}-0"
    10  spec:
    11    containers:
    12      - name: test-openldap
    13        image: "{{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"
    14        command:
    15          - "ldapsearch"
    16        args:
    17          - "-x"
    18          - "-H"
    19          - "ldap://myopenldap-openldap-compdef-0.myopenldap-openldap-compdef-headless.default.svc.cluster.local"
    20          - "-b"
    21          - "dc=kubeblocks,dc=io"
    22          - "-D"
    23          - "cn=admin,dc=kubeblocks,dc=io"
    24          - "-w"
    25          - "admin"
    26    restartPolicy: Never