Skip to content

Commit

Permalink
Update e2e setup
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Aug 11, 2023
1 parent cbc3778 commit f75c1d8
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/e2e/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ kubectl apply --server-side -k "github.com/ray-project/kuberay/ray-operator/conf

kubectl create ns codeflare-system --dry-run=client -o yaml | kubectl apply -f -

echo Deploying MCAD controller
cat <<EOF | kubectl apply -n codeflare-system -f -
apiVersion: codeflare.codeflare.dev/v1alpha1
kind: MCAD
metadata:
name: mcad
spec:
controllerResources: {}
EOF

cat <<EOF | kubectl apply -n codeflare-system -f -
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -61,13 +51,10 @@ metadata:
name: mcad-controller-rayclusters
subjects:
- kind: ServiceAccount
name: mcad-controller-mcad
name: controller-manager
namespace: codeflare-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mcad-controller-rayclusters
EOF

echo "Waiting for the MCAD deployment to become ready..."
kubectl wait --timeout=120s --for=condition=Available=true deployment -n codeflare-system mcad-controller-mcad

0 comments on commit f75c1d8

Please sign in to comment.