Skip to content

Commit

Permalink
Merge pull request #49 from Disper/local_dev_makefile
Browse files Browse the repository at this point in the history
adds target for convenient (re)building and (re)deployments
  • Loading branch information
kyma-bot authored Nov 13, 2023
2 parents 932ccc8 + 5c83389 commit fecdc22
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/default | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -

.PHONY: k3d-import-img
k3d-import-img:
k3d image import $(IMG) -c $(K3D_CLUSTER_NAME)

.PHONY: apply-sample-cr
apply-sample-cr:
kubectl apply -f config/samples/clusterinventory_v1_gardenercluster.yaml

.PHONE: local-build-and-deploy
local-build-and-deploy: docker-build k3d-import-img deploy gardener-secret-deploy apply-sample-cr

.PHONY: local-rebuild-and-redeploy
local-rebuild-and-redeploy: undeploy local-build-and-deploy
##@ Build Dependencies

## Location to install dependencies to
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ make docker-build
k3d
</summary>


```bash
k3d cluster create $K3D_CLUSTER_NAME
k3d image import $IMG -c $K3D_CLUSTER_NAME
```
</details>
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: infrastructure-manager
newName: custom-infrastructure-manager
newTag: 0.0.1

0 comments on commit fecdc22

Please sign in to comment.