Skip to content

Commit d296c2f

Browse files
committed
Deploy RBAC yaml for apache
Signed-off-by: Dongbo Xiao <[email protected]>
1 parent 8dd597a commit d296c2f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

kubernetes/internal/create-weblogic-domain.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)