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

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