Skip to content

Commit 5335689

Browse files
authored
Merge pull request #1523 from estroz/bugfix/makefile-kustomize-usage
makefile: use $(KUSTOMIZE) variable instead of binary name directly
2 parents f07a014 + e0c670e commit 5335689

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

pkg/scaffold/internal/templates/makefile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ uninstall: manifests kustomize
9191
9292
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
9393
deploy: manifests kustomize
94-
cd config/manager && kustomize edit set image controller=${IMG}
94+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
9595
$(KUSTOMIZE) build config/default | kubectl apply -f -
9696
9797
# Generate manifests e.g. CRD, RBAC etc.

testdata/project-v2-addon/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uninstall: manifests kustomize
3535

3636
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3737
deploy: manifests kustomize
38-
cd config/manager && kustomize edit set image controller=${IMG}
38+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
3939
$(KUSTOMIZE) build config/default | kubectl apply -f -
4040

4141
# Generate manifests e.g. CRD, RBAC etc.

testdata/project-v2-multigroup/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uninstall: manifests kustomize
3535

3636
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3737
deploy: manifests kustomize
38-
cd config/manager && kustomize edit set image controller=${IMG}
38+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
3939
$(KUSTOMIZE) build config/default | kubectl apply -f -
4040

4141
# Generate manifests e.g. CRD, RBAC etc.

testdata/project-v2/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uninstall: manifests kustomize
3535

3636
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3737
deploy: manifests kustomize
38-
cd config/manager && kustomize edit set image controller=${IMG}
38+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
3939
$(KUSTOMIZE) build config/default | kubectl apply -f -
4040

4141
# Generate manifests e.g. CRD, RBAC etc.

testdata/project-v3-addon/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uninstall: manifests kustomize
3535

3636
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3737
deploy: manifests kustomize
38-
cd config/manager && kustomize edit set image controller=${IMG}
38+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
3939
$(KUSTOMIZE) build config/default | kubectl apply -f -
4040

4141
# Generate manifests e.g. CRD, RBAC etc.

testdata/project-v3-multigroup/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uninstall: manifests kustomize
3535

3636
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3737
deploy: manifests kustomize
38-
cd config/manager && kustomize edit set image controller=${IMG}
38+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
3939
$(KUSTOMIZE) build config/default | kubectl apply -f -
4040

4141
# Generate manifests e.g. CRD, RBAC etc.

testdata/project-v3/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ uninstall: manifests kustomize
3535

3636
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
3737
deploy: manifests kustomize
38-
cd config/manager && kustomize edit set image controller=${IMG}
38+
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
3939
$(KUSTOMIZE) build config/default | kubectl apply -f -
4040

4141
# Generate manifests e.g. CRD, RBAC etc.

0 commit comments

Comments
 (0)