Skip to content

Commit

Permalink
wip ci refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1queee committed Aug 21, 2023
1 parent d4123e5 commit 2357728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,10 @@ jobs:
version: v0.13.0
- name: Install Shipwright Build
run: |
make prepare-conversion
make install-controller-kind
kubectl -n shipwright-build rollout status deployment shipwright-build-controller --timeout=1m || true
kubectl -n shipwright-build rollout status deployment shipwright-build-webhook --timeout=1m || true
- name: Test
run: |
kubectl create namespace shp-e2e
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ generate:
"$(CONTROLLER_GEN)" crd rbac:roleName=manager-role webhook paths="./..." output:crd:dir=deploy/crds

.PHONY: prepare-conversion
prepare-conversion: generate
prepare-conversion:
hack/generate-cert.sh
hack/patch-crds-with-conversion.sh

Expand Down
2 changes: 1 addition & 1 deletion hack/generate-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ echo "[INFO] Retrieving CABundle"
CA=$(kubectl get configmap -n kube-system extension-apiserver-authentication -o=jsonpath='{.data.client-ca-file}' | base64 | tr -d '\n')

echo "[INFO] Applying CABundle into customization/conversion_webhook_block.yaml"
sed -i '' "s/CA_BUNDLE/${CA}/" $DIR/hack/customization/conversion_webhook_block.yaml
sed -i "s/CA_BUNDLE/${CA}/g" $DIR/hack/customization/conversion_webhook_block.yaml

0 comments on commit 2357728

Please sign in to comment.