Skip to content

Commit

Permalink
add generate values.schema.json target and improve existing targets
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
  • Loading branch information
inteon committed Feb 15, 2024
1 parent 54b1629 commit 014a7c0
Show file tree
Hide file tree
Showing 4 changed files with 572 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ verify-%: FORCE
verify: ## build, test and verify generate tagets
verify: depend build test
verify: verify-generate
verify: verify-update-helm-docs

.PHONY: verify-boilerplate
verify-boilerplate: | $(BINDIR)/boilersuite-$(BOILERSUITE_VERSION)/boilersuite
Expand All @@ -114,7 +113,7 @@ $(BINDIR)/trust-manager-linux-amd64 $(BINDIR)/trust-manager-linux-arm64 $(BINDIR
go build -o $@ ./cmd/trust-manager

.PHONY: generate
generate: depend generate-deepcopy generate-applyconfigurations generate-manifests
generate: depend generate-deepcopy generate-applyconfigurations generate-manifests generate-helm-docs generate-helm-schema

.PHONY: generate-deepcopy
generate-deepcopy: ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
Expand Down Expand Up @@ -173,10 +172,14 @@ kind-load: local-images | $(BINDIR)/kind-$(KIND_VERSION)/kind ## same as local-
chart: | $(BINDIR)/helm-$(HELM_VERSION)/helm $(BINDIR)/chart
$(BINDIR)/helm-$(HELM_VERSION)/helm package --app-version=$(RELEASE_VERSION) --version=$(RELEASE_VERSION) --destination "$(BINDIR)/chart" ./deploy/charts/trust-manager

.PHONY: update-helm-docs
update-helm-docs: | $(BINDIR)/helm-tool-$(HELM_TOOL_VERSION)/helm-tool ## update Helm README, generated from other Helm files
.PHONY: generate-helm-docs
generate-helm-docs: | $(BINDIR)/helm-tool-$(HELM_TOOL_VERSION)/helm-tool ## update Helm README, generated from other Helm files
./hack/update-helm-tool.sh $(BINDIR)/helm-tool-$(HELM_TOOL_VERSION)/helm-tool

.PHONY: generate-helm-schema
generate-helm-schema: | $(BINDIR)/helm-tool-$(HELM_TOOL_VERSION)/helm-tool ## update Helm README, generated from other Helm files
$(BINDIR)/helm-tool-$(HELM_TOOL_VERSION)/helm-tool schema -i ./deploy/charts/trust-manager/values.yaml | jq > ./deploy/charts/trust-manager/values.schema.json

.PHONY: clean
clean: ## clean up created files
rm -rf \
Expand Down
4 changes: 4 additions & 0 deletions deploy/charts/trust-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ Timeout of webhook HTTP request.
> ```
The type of Kubernetes Service used by the Webhook.
#### **app.webhook.service.nodePort** ~ `number`
The nodePort set on the Service used by the webhook.
#### **app.webhook.tls.approverPolicy.enabled** ~ `bool`
> Default value:
> ```yaml
Expand Down

0 comments on commit 014a7c0

Please sign in to comment.