Skip to content

Commit 46f7264

Browse files
author
Ubuntu
committed
create existing secret for ci-singleNode
1 parent 0bd6bac commit 46f7264

File tree

4 files changed

+3
-50
lines changed

4 files changed

+3
-50
lines changed

.bin/disableLdapPort.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,4 @@ service:
1616
sslLdapPortNodePort: 30636
1717
type: NodePort
1818
initTLSSecret:
19-
tls_enabled: true
20-
image:
21-
registry: docker.io
22-
repository: alpine/openssl
23-
tag: latest
24-
pullPolicy: IfNotPresent
25-
secret: "custom-cert"
19+
tls_enabled: false

.bin/singleNode.yaml

-41
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,10 @@ resources:
99
replicaCount: 1
1010
replication:
1111
enabled: false
12-
# customLdifFiles:
13-
# 0-root.ldif: |-
14-
# dn: dc=singlenode,dc=org
15-
# objectClass: top
16-
# objectClass: dcObject
17-
# objectClass: organization
18-
# o: MY-DOMAIN
19-
# dc: singlenode
20-
# 02-users-group.ldif: |-
21-
# dn: ou=users,dc=singlenode,dc=org
22-
# ou: users
23-
# objectClass: organizationalUnit
24-
# objectClass: top
25-
# 01-admin-read-user.ldif: |-
26-
# dn: cn=admin-read,dc=singlenode,dc=org
27-
# cn: admin-read
28-
29-
# objectClass: inetOrgPerson
30-
# objectClass: top
31-
# userPassword: {SSHA}E2vRX2ssn7ckfjXBzP27SZH9Ast4rOEo
32-
# sn: Admin read only
33-
# customAcls: |-
34-
# dn: olcDatabase={2}mdb,cn=config
35-
# changetype: modify
36-
# replace: olcAccess
37-
# olcAccess: {0}to *
38-
# by dn.exact=gidNumber=0+uidNumber=1001,cn=peercred,cn=external,cn=auth manage
39-
# by * break
40-
# olcAccess: {1}to attrs=userPassword,shadowLastChange
41-
# by self write
42-
# by dn="cn=admin,dc=singlenode,dc=org" write
43-
# by anonymous auth by * none
44-
# olcAccess: {2}to *
45-
# by dn="cn=admin-read,dc=singlenode,dc=org" read
46-
# by dn="cn=admin,dc=singlenode,dc=org" write
47-
# by self read
48-
# by * none
4912
ltb-passwd:
5013
ingress:
5114
hosts:
5215
- "ssl-ldap2.example"
53-
# ldap:
54-
# searchBase: "ou=users,dc=singlenode,dc=org"
55-
# bindDN: "cn=admin-read,dc=singlenode,dc=org"
56-
# passKey: LDAP_ADMIN_READ_PASSWORD
5716
phpldapadmin:
5817
ingress:
5918
hosts:

.github/workflows/ci-other.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
run: |
1818
cd "$GITHUB_WORKSPACE"
1919
helm install openldap-stack-ha -n no-ldap-port --create-namespace -f .bin/disableLdapPort.yaml .
20-
kubectl -n no-ldap-port create secret generic custom-cert --from-file=./tls.crt --from-file=./tls.key --from-file=./ca.crt
2120
kubectl -n no-ldap-port rollout status sts openldap-stack-ha -n no-ldap-port
2221
- name: verify no ldap port deployment
2322
shell: bash

.github/workflows/ci-singlenode.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
shell: bash
1717
run: |
1818
cd "$GITHUB_WORKSPACE"
19-
helm install openldap-stack-ha -n single --create-namespace -f .bin/singleNode.yaml .
19+
kubectl create ns single
2020
kubectl create secret generic my-super-secret -n single --from-literal=LDAP_ADMIN_PASSWORD=Not@SecurePassw0rd --from-literal=LDAP_CONFIG_ADMIN_PASSWORD=Not@SecurePassw0rd
21+
helm install openldap-stack-ha -n single -f .bin/singleNode.yaml .
2122
kubectl rollout status sts openldap-stack-ha -n single
2223
- name: verify single node deployment
2324
shell: bash

0 commit comments

Comments
 (0)