1
0
Fork 0
mirror of https://github.com/prometheus-operator/prometheus-operator.git synced 2025-04-21 11:48:53 +00:00

Add CRD examples generator rule

This commit is contained in:
Antoine Legrand 2018-01-30 14:55:01 +01:00
parent 5d4241f2fe
commit 0e1184ec68

View file

@ -112,4 +112,9 @@ helm-sync-s3:
helm/hack/helm-package.sh kube-prometheus
helm/hack/sync-repo.sh
.PHONY: all build crossbuild test format check-license container e2e-test e2e-status e2e clean-e2e embedmd apidocgen docs
generate-crd: openapi-gen po-crdgen
po-crdgen prometheus > example/prometheus-operator-crd/prometheus.crd.yaml
po-crdgen alertmanager > example/prometheus-operator-crd/alertmanager.crd.yaml
po-crdgen servicemonitor > example/prometheus-operator-crd/servicemonitor.crd.yaml
.PHONY: all build crossbuild test format check-license container e2e-test e2e-status e2e clean-e2e embedmd apidocgen docs generate-crd