Skip to content

Commit a1332e6

Browse files
internal/plugins: Add kustomize as a prerequisite of Makefile's bundle target
`bundle` target in the autogenerated Makefile for new golang based operator projects generated by the operator-sdk make use of the `kustomize` CLI tool. This commit adds the `kustomize` Makefile target as a prerequisite of the `bundle` target.
1 parent eeadf69 commit a1332e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/plugins/manifests/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
8888
makefileBundleFragmentGo = `
8989
# Generate bundle manifests and metadata, then validate generated files.
9090
.PHONY: bundle
91-
bundle: manifests
91+
bundle: manifests kustomize
9292
operator-sdk generate kustomize manifests -q
9393
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
9494
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)

testdata/go/memcached-operator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ endif
111111

112112
# Generate bundle manifests and metadata, then validate generated files.
113113
.PHONY: bundle
114-
bundle: manifests
114+
bundle: manifests kustomize
115115
operator-sdk generate kustomize manifests --interactive=false -q
116116
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
117117
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS)

0 commit comments

Comments
 (0)