File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 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)
58ifeq (,$(shell go env GOBIN) )
@@ -120,6 +123,10 @@ run: manifests generate fmt vet ## Run a controller from your host.
120123docker-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
124131docker-push : # # Push docker image with the manager.
125132 $(CONTAINER_TOOL ) push ${IMG}
Original file line number Diff line number Diff line change 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:
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ kind: Kustomization
55images :
66- name : controller
77 newName : controller
8- newTag : latest
8+ newTag : dev
Original file line number Diff line number Diff 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-
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments