Skip to content

Commit

Permalink
Merge pull request #397 from makhov/makefile-controller-gen-release-fix
Browse files Browse the repository at this point in the history
Properly fix clusterctl files generation
  • Loading branch information
makhov authored Jan 5, 2024
2 parents 252c149 + 1a4b793 commit 8470db1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,17 @@ clusterapi-manifests:
$(CONTROLLER_GEN) rbac:roleName=manager-role crd:generateEmbeddedObjectMeta=true webhook paths="./api/controlplane/..." output:crd:artifacts:config=config/clusterapi/controlplane/bases
$(CONTROLLER_GEN) rbac:roleName=manager-role crd:generateEmbeddedObjectMeta=true webhook paths="./api/infrastructure/..." output:crd:artifacts:config=config/clusterapi/infrastructure/bases

bootstrap-components.yaml: clusterapi-manifests kustomize $(CONTROLLER_GEN)
bootstrap-components.yaml: $(CONTROLLER_GEN) clusterapi-manifests kustomize
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/clusterapi/bootstrap/ > bootstrap-components.yaml
git checkout config/manager/kustomization.yaml

control-plane-components.yaml: clusterapi-manifests kustomize $(CONTROLLER_GEN)
control-plane-components.yaml: $(CONTROLLER_GEN) clusterapi-manifests kustomize
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/clusterapi/controlplane/ > control-plane-components.yaml
git checkout config/manager/kustomization.yaml

infrastructure-components.yaml: clusterapi-manifests kustomize $(CONTROLLER_GEN)
infrastructure-components.yaml: $(CONTROLLER_GEN) clusterapi-manifests kustomize
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/clusterapi/infrastructure/ > infrastructure-components.yaml
git checkout config/manager/kustomization.yaml
Expand Down

0 comments on commit 8470db1

Please sign in to comment.