Skip to content

Commit

Permalink
kustomize: Control the controller image tag from config/default
Browse files Browse the repository at this point in the history
Signed-off-by: Or Mergi <[email protected]>
  • Loading branch information
ormergi committed Mar 4, 2024
1 parent ab08c8d commit 5a2b32d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified

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

.PHONY: undeploy
Expand Down
9 changes: 8 additions & 1 deletion config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ namePrefix: selfserviceoverlay-
#commonLabels:
# someName: someValue

bases:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../crd
- ../rbac
- ../manager

images:
- name: controller
newName: quay.io/omergi/overlay-network-controller
newTag: devel

0 comments on commit 5a2b32d

Please sign in to comment.