Skip to content

Commit

Permalink
fix: change ldap namespace for kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Jul 27, 2023
1 parent 9f6bfde commit 8e00ec6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
10 changes: 1 addition & 9 deletions fixtures/datasources/_setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -579,16 +579,10 @@ metadata:
name: jmeter-fail-test
namespace: default
---
apiVersion: v1
kind: Namespace
metadata:
name: ldap
---
kind: ConfigMap
apiVersion: v1
metadata:
name: apacheds-ldif
namespace: ldap
data:
users.ldif: |
#########################################################
Expand Down Expand Up @@ -706,7 +700,6 @@ metadata:
labels:
app: apacheds
name: apacheds
namespace: ldap
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -750,7 +743,6 @@ apiVersion: v1
kind: Service
metadata:
name: apacheds
namespace: ldap
spec:
ports:
- name: ldap
Expand Down Expand Up @@ -784,4 +776,4 @@ subjects:
roleRef:
apiGroup: ""
kind: ClusterRole
name: test-rbac-ldap
name: test-rbac-ldap
4 changes: 2 additions & 2 deletions fixtures/datasources/ldap_pass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ metadata:
spec:
interval: 30
ldap:
- url: ldap://apacheds.ldap.svc.cluster.local:10389
- url: ldap://apacheds.default.svc.cluster.local:10389
name: ldap user login
username:
value: uid=admin,ou=system
password:
value: secret
bindDN: ou=users,dc=example,dc=com
userSearch: "(&(objectClass=organizationalPerson))"
- url: ldap://apacheds.ldap.svc.cluster.local:10389
- url: ldap://apacheds.default.svc.cluster.local:10389
name: ldap group login
username:
value: uid=admin,ou=system
Expand Down
5 changes: 2 additions & 3 deletions fixtures/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
resources:
- datasources
- k8s
- minimal
- git
- topology
resources:
- _setup.yaml
- _setup.yaml

0 comments on commit 8e00ec6

Please sign in to comment.