Skip to content

Commit

Permalink
Merge pull request #24 from Ygnas/local-setup-changes
Browse files Browse the repository at this point in the history
Only local deployment needs and image
  • Loading branch information
eoinfennessy authored Jul 7, 2023
2 parents 55f0e05 + 21544f8 commit e287a62
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi

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

.PHONY: undeploy-local
Expand Down
12 changes: 11 additions & 1 deletion config/local/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
resources:
- default
- ../default

secretGenerator:
- envs:
- ../../aws-credentials.env
name: aws-credentials

patchesStrategicMerge:
- manager_config_patch.yaml

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: docker.io/library/kuadra
newTag: v1
11 changes: 11 additions & 0 deletions config/local/manager_config_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
spec:
template:
spec:
containers:
- name: manager
imagePullPolicy: Never
4 changes: 2 additions & 2 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: docker.io/library/kuadra
newTag: v1
newName: controller
newTag: latest

0 comments on commit e287a62

Please sign in to comment.