Skip to content

Commit 9b6d495

Browse files
committed
Fix failing example dry run due to missing CRD
1 parent 8e7038f commit 9b6d495

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/pr.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ jobs:
2727
steps:
2828
- name: Check out code into the Go module directory
2929
uses: actions/checkout@v2
30-
- name: System tests
30+
- name: Dry run examples
3131
run: |
3232
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
3333
export GOPATH=$HOME/go
3434
export PATH=$PATH:$GOPATH/bin
3535
make install-tools
3636
kind create cluster --image kindest/node:v1.19.1
3737
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.crds.yaml
38+
# Create CRD PodMonitor without running Prometheus operator
39+
curl https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/master/bundle.yaml | sed "s/replicas: 1$/replicas: 0/" | kubectl apply -f -
3840
make install
3941
kubectl apply --dry-run=server --recursive -f docs/examples/
4042

0 commit comments

Comments
 (0)