File tree Expand file tree Collapse file tree 9 files changed +45
-36
lines changed
component-config-tutorial/testdata/project
cronjob-tutorial/testdata/project
pkg/plugins/golang/v4/scaffolds/internal/templates
project-v4-declarative-v1
project-v4-with-deploy-image Expand file tree Collapse file tree 9 files changed +45
-36
lines changed Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -174,20 +174,20 @@ endif
174
174
175
175
.PHONY: install
176
176
install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
177
- $(KUSTOMIZE) build config/crd | kubectl apply -f -
177
+ $(KUSTOMIZE) build config/crd | $(KUBECTL) apply -f -
178
178
179
179
.PHONY: uninstall
180
180
uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
181
- $(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
181
+ $(KUSTOMIZE) build config/crd | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -
182
182
183
183
.PHONY: deploy
184
184
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
185
185
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
186
- $(KUSTOMIZE) build config/default | kubectl apply -f -
186
+ $(KUSTOMIZE) build config/default | $(KUBECTL) apply -f -
187
187
188
188
.PHONY: undeploy
189
189
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.
190
- $(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -
190
+ $(KUSTOMIZE) build config/default | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -
191
191
192
192
##@ Build Dependencies
193
193
@@ -197,6 +197,7 @@ $(LOCALBIN):
197
197
mkdir -p $(LOCALBIN)
198
198
199
199
## Tool Binaries
200
+ KUBECTL ?= kubectl
200
201
KUSTOMIZE ?= $(LOCALBIN)/kustomize
201
202
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
202
203
ENVTEST ?= $(LOCALBIN)/setup-envtest
Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
Original file line number Diff line number Diff line change @@ -110,20 +110,20 @@ endif
110
110
111
111
.PHONY : install
112
112
install : manifests kustomize # # Install CRDs into the K8s cluster specified in ~/.kube/config.
113
- $(KUSTOMIZE ) build config/crd | kubectl apply -f -
113
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) apply -f -
114
114
115
115
.PHONY : uninstall
116
116
uninstall : manifests kustomize # # Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
117
- $(KUSTOMIZE ) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
117
+ $(KUSTOMIZE ) build config/crd | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
118
118
119
119
.PHONY : deploy
120
120
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
121
121
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
122
- $(KUSTOMIZE ) build config/default | kubectl apply -f -
122
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) apply -f -
123
123
124
124
.PHONY : undeploy
125
125
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.
126
- $(KUSTOMIZE ) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found ) -f -
126
+ $(KUSTOMIZE ) build config/default | $( KUBECTL ) delete --ignore-not-found=$(ignore-not-found ) -f -
127
127
128
128
# #@ Build Dependencies
129
129
@@ -133,6 +133,7 @@ $(LOCALBIN):
133
133
mkdir -p $(LOCALBIN )
134
134
135
135
# # Tool Binaries
136
+ KUBECTL ?= kubectl
136
137
KUSTOMIZE ?= $(LOCALBIN ) /kustomize
137
138
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
138
139
ENVTEST ?= $(LOCALBIN ) /setup-envtest
You can’t perform that action at this time.
0 commit comments