Skip to content

Commit

Permalink
acceptance: Avoid "metadata.annotations too long" errors on applying …
Browse files Browse the repository at this point in the history
…CRDs
  • Loading branch information
mumoshu committed Feb 17, 2022
1 parent 1e45235 commit a7b39cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acceptance/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ if [ "${tool}" == "helm" ]; then
--set image.repository=${NAME} \
--set image.tag=${VERSION} \
-f ${VALUES_FILE}
kubectl apply -f charts/actions-runner-controller/crds
# To prevent `CustomResourceDefinition.apiextensions.k8s.io "runners.actions.summerwind.dev" is invalid: metadata.annotations: Too long: must have at most 262144 bytes`
# errors
kubectl create -f charts/actions-runner-controller/crds || kubectl replace -f charts/actions-runner-controller/crds
kubectl -n actions-runner-system wait deploy/actions-runner-controller --for condition=available --timeout 60s
else
kubectl apply \
Expand Down

0 comments on commit a7b39cc

Please sign in to comment.