File tree 4 files changed +10
-9
lines changed
4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ IMAGE_REGISTRY ?= ${STAGING_IMAGE_REGISTRY}/lws
35
35
IMAGE_NAME := lws
36
36
IMAGE_REPO := $(IMAGE_REGISTRY ) /$(IMAGE_NAME )
37
37
IMG ?= $(IMAGE_REPO ) :$(GIT_TAG )
38
- HELM_CHART_REPO := ${STAGING_IMAGE_REGISTRY}/charts
38
+ HELM_CHART_REPO := ${STAGING_IMAGE_REGISTRY}/lws/ charts
39
39
# Use distroless as minimal base image to package the manager binary
40
40
# Refer to https://github.com/GoogleContainerTools/distroless for more details
41
41
BASE_IMAGE ?= gcr.io/distroless/static:nonroot
@@ -270,7 +270,7 @@ code-generator:
270
270
271
271
# #@ Release
272
272
.PHONY : artifacts
273
- artifacts : kustomize helm
273
+ artifacts : kustomize helm yq
274
274
cd config/manager && $(KUSTOMIZE ) edit set image controller=${IMG}
275
275
if [ -d artifacts ]; then rm -rf artifacts; fi
276
276
mkdir -p artifacts
@@ -282,7 +282,7 @@ artifacts: kustomize helm
282
282
$(HELM ) package --version $(GIT_TAG ) --app-version $(GIT_TAG ) charts/lws -d artifacts/
283
283
mv artifacts/lws-$(GIT_TAG ) .tgz artifacts/lws-chart-$(GIT_TAG ) .tgz
284
284
# Revert the image changes
285
- $(YQ ) e ' .image.manager.repository = "$(IMAGE_REGISTRY)/$(IMAGE_NAME)" | del( .image.manager.tag) | .image.manager.pullPolicy = "Always"' -i charts/lws/values.yaml
285
+ $(YQ ) e ' .image.manager.repository = "$(IMAGE_REGISTRY)/$(IMAGE_NAME)" | .image.manager.tag = "main" | .image.manager.pullPolicy = "Always"' -i charts/lws/values.yaml
286
286
287
287
288
288
.PHONY : prometheus
Original file line number Diff line number Diff line change 14
14
repository : us-central1-docker.pkg.dev/k8s-staging-images/lws/lws
15
15
# tag, if defined will use the given image tag, else Chart.AppVersion will be used
16
16
tag : main
17
- pullPolicy : IfNotPresent
17
+ pullPolicy : Always
18
+ tag : main
18
19
podAnnotations : {}
19
20
podSecurityContext :
20
21
runAsNonRoot : true
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ generatorOptions:
5
5
disableNameSuffixHash : true
6
6
7
7
configMapGenerator :
8
- - files :
9
- - controller_manager_config.yaml
10
- name : manager-config
8
+ - files :
9
+ - controller_manager_config.yaml
10
+ name : manager-config
11
11
12
12
apiVersion : kustomize.config.k8s.io/v1beta1
13
13
kind : Kustomization
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ GIT_TAG=${GIT_TAG:-$(git describe --tags --dirty --always)}
25
25
26
26
STAGING_IMAGE_REGISTRY=${STAGING_IMAGE_REGISTRY:- us-central1-docker.pkg.dev/ k8s-staging-images}
27
27
IMAGE_REGISTRY=${IMAGE_REGISTRY:- ${STAGING_IMAGE_REGISTRY} / lws}
28
- HELM_CHART_REPO=${HELM_CHART_REPO:- ${STAGING_IMAGE_REGISTRY} / charts}
28
+ HELM_CHART_REPO=${HELM_CHART_REPO:- ${STAGING_IMAGE_REGISTRY} / lws / charts}
29
29
IMAGE_REPO=${IMAGE_REPO:- ${IMAGE_REGISTRY} / lws}
30
30
31
31
HELM=${HELM:- ./ bin/ helm}
42
42
chart_version=${EXTRA_TAG}
43
43
fi
44
44
45
- default_image_repo=$( ${YQ} " .image.repository" charts/lws/values.yaml)
45
+ default_image_repo=$( ${YQ} " .image.manager. repository" charts/lws/values.yaml)
46
46
readonly default_image_repo
47
47
48
48
# Update the image repo, tag and policy
You can’t perform that action at this time.
0 commit comments