Skip to content

Commit

Permalink
make image naming match
Browse files Browse the repository at this point in the history
also add an "undeploy" target for best effort podpreset removal
  • Loading branch information
Jeff Peeler committed Aug 15, 2018
1 parent 6d42c3c commit a6c1e43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion config/default/manager_image_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a6c1e43

Please sign in to comment.