Skip to content

Commit

Permalink
Merge pull request #314 from ThatsMrTalbot/feat/helm-tool-for-docs
Browse files Browse the repository at this point in the history
feat: add autogenerated helm docs
  • Loading branch information
jetstack-bot committed Feb 29, 2024
2 parents 8f20241 + 7179246 commit d2efcbe
Show file tree
Hide file tree
Showing 3 changed files with 903 additions and 30 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ CERT_MANAGER_VERSION ?= v1.13.3
CONTROLLER_GEN_VERSION := 0.5.0
CONTROLLER_GEN := ${BIN}/controller-gen-${CONTROLLER_GEN_VERSION}

# Helm tools
HELM_TOOL_VERSION := v0.2.2

INSTALL_YAML ?= build/install.yaml

all: manager
Expand Down Expand Up @@ -114,6 +117,9 @@ undeploy:
manifests: controller-gen
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases

helm-docs: helm-tool
$(HELM_TOOL) inject -i charts/aws-pca-issuer/values.yaml -o charts/aws-pca-issuer/README.md --header-search "^<!-- AUTO-GENERATED -->" --footer-search "<!-- /AUTO-GENERATED -->"

# Run go fmt against code
fmt:
go fmt ./...
Expand Down Expand Up @@ -149,6 +155,10 @@ CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
controller-gen:
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1)

HELM_TOOL = $(shell pwd)/bin/helm-tool
helm-tool:
$(call go-install-tool,$(HELM_TOOL),github.com/cert-manager/helm-tool@$(HELM_TOOL_VERSION))

# Download kustomize locally if necessary
KUSTOMIZE = $(shell pwd)/bin/kustomize
kustomize:
Expand Down
Loading

0 comments on commit d2efcbe

Please sign in to comment.