Skip to content

Commit

Permalink
build manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
didil committed Feb 22, 2023
1 parent da577c3 commit 1a81755
Show file tree
Hide file tree
Showing 3 changed files with 464 additions and 1 deletion.
7 changes: 6 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 ?= quay.io/didil/paperlb:latest
IMG ?= quay.io/didil/paperlb:da577c3
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.26.0

Expand Down Expand Up @@ -119,6 +119,11 @@ deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in
undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

.PHONY: build-manifests
build-manifests: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
$(KUSTOMIZE) build config/default > config/manifests/paperlb.yaml

##@ Build Dependencies

## Location to install dependencies to
Expand Down
6 changes: 6 additions & 0 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
resources:
- manager.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: quay.io/didil/paperlb
newTag: da577c3
Loading

0 comments on commit 1a81755

Please sign in to comment.