diff --git a/Makefile b/Makefile index c53e5231..2d609e98 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index bd52147a..c7f5df69 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,9 @@ make docker-build k3d + ```bash + k3d cluster create $K3D_CLUSTER_NAME k3d image import $IMG -c $K3D_CLUSTER_NAME ``` diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 8af8ea33..4cde9b19 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -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