Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Image URL to use all building/pushing image targets
IMG ?= controller:latest
# if :latest then Kubernetes defaults imagePullPolicy: Always
# which fails if the image tag is intended to be used only locally
# so default to :dev for improved DX and override when needed in pipelines
IMG ?= controller:dev

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

.PHONY: minikube-load
minikube-load:
minikube image load ${IMG}

.PHONY: docker-push
docker-push: ## Push docker image with the manager.
$(CONTAINER_TOOL) push ${IMG}
Expand Down
4 changes: 2 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: kubebuilder-system
namespace: multigres-operator

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

# Labels to add to all resources and selectors.
#labels:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: controller
newTag: latest
newTag: dev
8 changes: 0 additions & 8 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,3 @@ resources:
- metrics_auth_role.yaml
- metrics_auth_role_binding.yaml
- metrics_reader_role.yaml
# For each CRD, "Admin", "Editor" and "Viewer" roles are scaffolded by
# default, aiding admins in cluster management. Those roles are
# not used by the kubebuilder itself. You can comment the following lines
# if you do not want those helpers be installed with your Project.
- guestbook_admin_role.yaml
- guestbook_editor_role.yaml
- guestbook_viewer_role.yaml

1 change: 1 addition & 0 deletions devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pkgs.mkShell {
kubectl
kind
golangci-lint
minikube

# For some script use cases
nodejs
Expand Down
Loading