Skip to content

Commit

Permalink
scripts,Make: add a generate-manifests target
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov committed Aug 15, 2023
1 parent 389369d commit f22a85b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,18 @@ vendor:
manifests: ## Generate manifests
OLM_VERSION=$(OLM_VERSION) ./scripts/generate_crds_manifests.sh

.PHONY: generate-manifests
generate-manifests: OLM_VERSION=0.0.1-snapshot
generate-manifests: manifests

.PHONY: diff
diff:
git diff --stat HEAD --ignore-submodules --exit-code

verify-vendor: vendor
$(MAKE) diff

verify-manifests: OLM_VERSION=0.0.1-snapshot
verify-manifests: manifests
verify-manifests: generate-manifests
$(MAKE) diff

verify-nested-vendor:
Expand Down
2 changes: 1 addition & 1 deletion scripts/bumper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func cherryPick(ctx context.Context, logger *logrus.Entry, c commit) error {
"go", "mod", "verify",
), os.Environ()...),
withEnv(exec.CommandContext(ctx,
"make", "manifests", "OLM_VERSION=0.0.1-snapshot",
"make", "generate-manifests",
), os.Environ()...),
exec.CommandContext(ctx,
"git", "add",
Expand Down

0 comments on commit f22a85b

Please sign in to comment.