From a6c1e4335f4dae1c30107a16b8063c6f8c2ec6d6 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Thu, 2 Aug 2018 13:41:38 -0400 Subject: [PATCH] make image naming match also add an "undeploy" target for best effort podpreset removal --- Makefile | 6 +++++- config/default/manager_image_patch.yaml | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2fa9425d..c049d095 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Image URL to use all building/pushing image targets -IMG ?= podpreset-controller:latest +IMG ?= docker.io/service-catalog/podpreset-controller:latest all: test manager @@ -25,6 +25,10 @@ deploy: manifests kubectl apply -f config/crds kustomize build config/default | kubectl apply -f - +undeploy: + kustomize build config/default | kubectl delete -f - + kubectl delete -f config/crds + # Generate manifests e.g. CRD, RBAC etc. manifests: go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go all diff --git a/config/default/manager_image_patch.yaml b/config/default/manager_image_patch.yaml index c1665883..8528ba71 100644 --- a/config/default/manager_image_patch.yaml +++ b/config/default/manager_image_patch.yaml @@ -8,5 +8,6 @@ spec: spec: containers: # Change the value of image field below to your controller image URL (should match makefile) - - image: podpreset-controller:latest + - image: docker.io/service-catalog/podpreset-controller:latest name: manager + imagePullPolicy: IfNotPresent