Skip to content

Commit cd52c92

Browse files
committed
create local cluster deployment path
1 parent 6a877d0 commit cd52c92

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Image URL to use all building/pushing image targets
2-
IMG ?= controller:latest
2+
# if :latest then Kubernetes defaults imagePullPolicy: Always
3+
# which fails if the image tag is intended to be used only locally
4+
# so default to :dev for improved DX and override when needed in pipelines
5+
IMG ?= controller:dev
36

47
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
58
ifeq (,$(shell go env GOBIN))
@@ -120,6 +123,10 @@ run: manifests generate fmt vet ## Run a controller from your host.
120123
docker-build: ## Build docker image with the manager.
121124
$(CONTAINER_TOOL) build -t ${IMG} .
122125

126+
.PHONY: minikube-load
127+
minikube-load:
128+
minikube image load ${IMG}
129+
123130
.PHONY: docker-push
124131
docker-push: ## Push docker image with the manager.
125132
$(CONTAINER_TOOL) push ${IMG}

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Adds namespace to all resources.
2-
namespace: kubebuilder-system
2+
namespace: multigres-operator
33

44
# Value of this field is prepended to the
55
# names of all resources, e.g. a deployment named
66
# "wordpress" becomes "alices-wordpress".
77
# Note that it should also match with the prefix (text before '-') of the namespace
88
# field above.
9-
namePrefix: kubebuilder-
9+
namePrefix: multigres-operator-
1010

1111
# Labels to add to all resources and selectors.
1212
#labels:

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ kind: Kustomization
55
images:
66
- name: controller
77
newName: controller
8-
newTag: latest
8+
newTag: dev

config/rbac/kustomization.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,3 @@ resources:
1818
- metrics_auth_role.yaml
1919
- metrics_auth_role_binding.yaml
2020
- metrics_reader_role.yaml
21-
# For each CRD, "Admin", "Editor" and "Viewer" roles are scaffolded by
22-
# default, aiding admins in cluster management. Those roles are
23-
# not used by the kubebuilder itself. You can comment the following lines
24-
# if you do not want those helpers be installed with your Project.
25-
- guestbook_admin_role.yaml
26-
- guestbook_editor_role.yaml
27-
- guestbook_viewer_role.yaml
28-

devshell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pkgs.mkShell {
99
kubectl
1010
kind
1111
golangci-lint
12+
minikube
1213

1314
# For some script use cases
1415
nodejs

0 commit comments

Comments
 (0)