File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -707,6 +707,21 @@ function setupApacheLoadBalancer {
707707
708708 apacheName=" ${domainUID} -apache-webtier"
709709
710+ echo Setting up apache security
711+ kubectl apply -f ${apacheSecurityOutput}
712+
713+ echo Checking the cluster role ${apacheName} was created
714+ CLUSTERROLE=` kubectl get clusterroles | grep ${apacheName} | wc | awk ' { print $1; } ' `
715+ if [ " $CLUSTERROLE " != " 1" ]; then
716+ fail " The cluster role ${apacheName} was not created"
717+ fi
718+
719+ echo Checking the cluster role binding ${apacheName} was created
720+ CLUSTERROLEBINDING=` kubectl get clusterrolebindings | grep ${apacheName} | wc | awk ' { print $1; } ' `
721+ if [ " $CLUSTERROLEBINDING " != " 1" ]; then
722+ fail " The cluster role binding ${apacheName} was not created"
723+ fi
724+
710725 echo Deploying apache
711726 kubectl apply -f ${apacheOutput}
712727
You can’t perform that action at this time.
0 commit comments