File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -182,11 +182,13 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize
182
182
CONTROLLER_GEN ?= $(LOCALBIN ) /controller-gen
183
183
ENVTEST ?= $(LOCALBIN ) /setup-envtest
184
184
HELMIFY ?= $(LOCALBIN ) /helmify
185
+ YQ ?= $(LOCALBIN ) /yq
185
186
186
187
# # Tool Versions
187
188
KUSTOMIZE_VERSION ?= v5.1.1
188
189
CONTROLLER_TOOLS_VERSION ?= v0.13.0
189
190
HELMIFY_VERSION ?= v0.4.10
191
+ YQ_VERSION ?= v4.40.3
190
192
191
193
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
192
194
.PHONY : kustomize
@@ -276,9 +278,16 @@ $(HELMIFY): $(LOCALBIN)
276
278
test -s $(LOCALBIN ) /helmify && $(LOCALBIN ) /helmify --version | grep -q $(HELMIFY_VERSION ) || \
277
279
GOBIN=$(LOCALBIN ) go install -ldflags " -X main.version=$( HELMIFY_VERSION) " github.com/arttor/helmify/cmd/helmify@$(HELMIFY_VERSION )
278
280
281
+ .PHONY : yq
282
+ yq : $(YQ ) # # Download yq locally if necessary. If wrong version is installed, it will be overwritten.
283
+ $(YQ ) : $(LOCALBIN )
284
+ test -s $(LOCALBIN ) /yq && $(LOCALBIN ) /yq --version | grep -q $(YQ_VERSION ) || \
285
+ GOBIN=$(LOCALBIN ) go install -ldflags " -X cmd.Version=$( YQ_VERSION) " github.com/mikefarah/yq/v4@$(YQ_VERSION )
286
+
279
287
.PHONY : helm
280
288
helm : manifests kustomize license helmify
281
289
$(KUSTOMIZE ) build config/helm | $(HELMIFY ) -crd-dir -generate-defaults -image-pull-secrets charts/atlas-operator
290
+ $(YQ ) -i ' .controllerManager.manager.image.tag = ""' charts/atlas-operator/values.yaml
282
291
283
292
.PHONY : cli-gen
284
293
cli-gen : generate manifests helm license
Original file line number Diff line number Diff line change 1
1
controllerManager :
2
2
manager :
3
3
args :
4
- - --leader-elect
4
+ - --leader-elect
5
5
containerSecurityContext :
6
6
allowPrivilegeEscalation : false
7
7
capabilities :
8
8
drop :
9
- - ALL
9
+ - ALL
10
10
runAsUser : 1000
11
11
env :
12
12
prewarmDevdb : " true"
13
13
image :
14
14
repository : arigaio/atlas-operator
15
- tag : latest
15
+ tag : " "
16
16
resources :
17
17
limits :
18
18
cpu : 500m
You can’t perform that action at this time.
0 commit comments