Skip to content

Commit

Permalink
Apply CRDs when running e2e tests using kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
jswoods committed Nov 16, 2023
1 parent 4271765 commit 81e0c2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/run-e2e-tests-using-kubectl-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if ! kubectl get daemonset -n kube-system kindnet ; then
exit 1
fi

kubectl create -k config/crd/
kubectl label node --overwrite --all topology.kubernetes.io/zone=az1

kubectl patch clusterrolebinding cluster-admin --type='json' -p='[{"op": "add", "path": "/subjects/1", "value": {"kind": "ServiceAccount", "name": "default", "namespace": "default" } }]'
kubectl run -n default test-pod --env="HUMIO_E2E_LICENSE=$HUMIO_E2E_LICENSE" --env="E2E_LOGS_HUMIO_HOSTNAME=$E2E_LOGS_HUMIO_HOSTNAME" --env="E2E_LOGS_HUMIO_INGEST_TOKEN=$E2E_LOGS_HUMIO_INGEST_TOKEN" --env="E2E_RUN_ID=$E2E_RUN_ID" --env="GINKGO_NODES=$GINKGO_NODES" --env="DOCKER_USERNAME=$DOCKER_USERNAME" --env="DOCKER_PASSWORD=$DOCKER_PASSWORD" --restart=Never --image=testcontainer --image-pull-policy=Never -- sleep 86400
while [[ $(kubectl get -n default pods test-pod -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for pod" ; kubectl describe -n default pod test-pod ; sleep 1 ; done
Expand Down

0 comments on commit 81e0c2e

Please sign in to comment.