Skip to content

Commit fd00167

Browse files
committed
copying mcad crds in kustomize config instead of referencing them
1 parent 06d724f commit fd00167

File tree

4 files changed

+995
-4
lines changed

4 files changed

+995
-4
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ defaults:
147147
gofmt -w $(DEFAULTS_TEST_FILE)
148148

149149
.PHONY: manifests
150-
manifests: controller-gen ## Generate RBAC objects.
150+
manifests: controller-gen kustomize ## Generate RBAC objects.
151151
$(CONTROLLER_GEN) rbac:roleName=manager-role webhook paths="./..."
152+
$(SED) -i -E "s|(- )\${MCAD_REPO}.*|\1\${MCAD_CRD}|" config/crd/mcad/kustomization.yaml
153+
$(KUSTOMIZE) build config/crd/mcad > config/crd/mcad.yaml
152154

153155
.PHONY: fmt
154156
fmt: ## Run go fmt against code.

config/crd/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This kustomization.yaml is not intended to be run by itself,
22
# since it depends on service name and namespace that are out of this kustomize package.
33
# It should be run by config/default
4-
resources:
5-
- mcad
4+
#resources:
5+
66
#+kubebuilder:scaffold:crdkustomizeresource

0 commit comments

Comments
 (0)