Skip to content

Commit f4cfac1

Browse files
Merge pull request #1100 from alegrey91/docs/generate-ref-crd-documentation
docs: generate ref crd documentation
2 parents 3d6cb1d + dfe45f0 commit f4cfac1

8 files changed

Lines changed: 2013 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ When you make changes to the CRDs in `/api` or rbac rules annotations, you need
7474
make generate
7575
```
7676

77+
This will automatically update the API reference documentation in [`docs/crds`](docs/crds/README.md).
78+
7779
## Writing Tests
7880

7981
**Controller Tests**

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ mcp-image:
104104
@echo "Built $(REGISTRY)/$(REPO)/mcp:$(TAG)"
105105

106106
.PHONY: generate
107-
generate: generate-controller generate-storage generate-chart generate-mocks
107+
generate: generate-controller generate-storage generate-chart generate-mocks generate-docs
108108

109109
.PHONY: generate-controller
110110
generate-controller: manifests ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -136,6 +136,10 @@ generate-chart: ## Generate Helm chart values schema.
136136
generate-mocks: ## Generate mocks for testing.
137137
$(MOCKERY)
138138

139+
.PHONY: generate-docs
140+
generate-docs: ## Generate API documentation for CRDs.
141+
$(MAKE) -C docs/crds
142+
139143
.PHONY: generate-fixtures
140144
generate-fixtures: ## Generate test fixtures.
141145
$(GO_BUILD_ENV) go run ./hack/generate_fixtures.go ./test/fixtures

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ This is still being developed. For additional details, please refer to the [RFC]
1717
- [Quickstart](https://github.com/kubewarden/sbomscanner/blob/main/docs/installation/quickstart.md)
1818
- [Uninstall](https://github.com/kubewarden/sbomscanner/blob/main/docs/installation/uninstall.md)
1919
- [Helm Chart Values Configuration](https://github.com/kubewarden/sbomscanner/blob/main/docs/installation/helm-values.md)
20+
- [CRDs Documenation](https://github.com/kubewarden/sbomscanner/blob/main/docs/crds/CRD-docs-for-docs-repo.md)
2021

2122
### Usage
2223

0 commit comments

Comments
 (0)