Skip to content

Commit

Permalink
Fixing the dryrun syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nandajavarma committed Dec 20, 2021
1 parent 6d4f34b commit e0c5dc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ trigger:
ref:
include:
- refs/heads/master
- refs/heads/update_images
- refs/tags/**

steps:
Expand Down Expand Up @@ -226,7 +225,6 @@ trigger:
ref:
include:
- refs/heads/master
- refs/heads/update_images
- refs/tags/**

steps:
Expand Down Expand Up @@ -325,7 +323,6 @@ trigger:
ref:
include:
- refs/heads/master
- refs/heads/update_images
- refs/tags/**

steps:
Expand Down
8 changes: 4 additions & 4 deletions katalog/tests/nginx-ldap-auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ load ./helper
@test "Setup httpbin demo project" {
info
setup_demo(){
kubectl create ns demo-nginx-ldap-auth --dry-run -o yaml | kubectl apply -f -
kubectl create ns demo-nginx-ldap-auth --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f katalog/tests/nginx-ldap-auth/httpbin.yaml -n demo-nginx-ldap-auth
}
run setup_demo
Expand All @@ -64,7 +64,7 @@ load ./helper
info
setup_ldap(){
kubectl create ns demo-ldap
kubectl create configmap ldap-ldif --from-file=sighup.io.ldif=katalog/tests/nginx-ldap-auth/sighup.io-users.ldif -n demo-ldap --dry-run -o yaml |kubectl apply -f -
kubectl create configmap ldap-ldif --from-file=sighup.io.ldif=katalog/tests/nginx-ldap-auth/sighup.io-users.ldif -n demo-ldap --dry-run=client -o yaml |kubectl apply -f -
kubectl apply -f katalog/tests/nginx-ldap-auth/ldap-server.yaml -n demo-ldap
}
run setup_ldap
Expand Down Expand Up @@ -149,7 +149,7 @@ load ./helper
@test "Groups. Deploy example ldap instance" {
info
setup_ldap(){
kubectl create configmap ldap-ldif --from-file=sighup.io.ldif=katalog/tests/nginx-ldap-auth/sighup.io-groups.ldif -n demo-ldap --dry-run -o yaml |kubectl apply -f -
kubectl create configmap ldap-ldif --from-file=sighup.io.ldif=katalog/tests/nginx-ldap-auth/sighup.io-groups.ldif -n demo-ldap --dry-run=client -o yaml |kubectl apply -f -
kubectl rollout restart deploy/ldap-server -n demo-ldap
}
run setup_ldap
Expand All @@ -159,7 +159,7 @@ load ./helper
@test "Groups. Deploy nginx-ldap-auth" {
info
setup_nginx_ldap_auth() {
kubectl create secret generic nginx-ldap-auth --from-file=config.yaml=katalog/tests/nginx-ldap-auth/nginx-ldap-auth-config-groups.yaml -n ingress-nginx --dry-run -o yaml |kubectl apply -f -
kubectl create secret generic nginx-ldap-auth --from-file=config.yaml=katalog/tests/nginx-ldap-auth/nginx-ldap-auth-config-groups.yaml -n ingress-nginx --dry-run=client -o yaml |kubectl apply -f -
kubectl rollout restart deploy/nginx-ldap-auth -n ingress-nginx
}
run setup_nginx_ldap_auth
Expand Down

0 comments on commit e0c5dc6

Please sign in to comment.