Skip to content

Commit 2d0bdd2

Browse files
committed
add makefile configs for bbr helm chart
1 parent fcbdc14 commit 2d0bdd2

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ PHONY: inferencepool-helm-chart-push
298298
inferencepool-helm-chart-push: yq helm
299299
CHART=inferencepool EXTRA_TAG="$(EXTRA_TAG)" IMAGE_REGISTRY="$(IMAGE_REGISTRY)" YQ="$(YQ)" HELM="$(HELM)" ./hack/push-chart.sh
300300

301+
PHONY: bbr-helm-chart-push
302+
bbr-helm-chart-push: yq helm
303+
CHART=body-based-routing EXTRA_TAG="$(EXTRA_TAG)" IMAGE_REGISTRY="$(IMAGE_REGISTRY)" YQ="$(YQ)" HELM="$(HELM)" ./hack/push-chart.sh
304+
301305
##@ Release
302306

303307
.PHONY: release-quickstart

cloudbuild.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ steps:
3636
- GIT_TAG=$_GIT_TAG
3737
- EXTRA_TAG=$_PULL_BASE_REF
3838
- DOCKER_BUILDX_CMD=/buildx-entrypoint
39+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240718-5ef92b5c36
40+
entrypoint: make
41+
args:
42+
- bbr-helm-chart-push
43+
env:
44+
- GIT_TAG=$_GIT_TAG
45+
- EXTRA_TAG=$_PULL_BASE_REF
46+
- GOTOOLCHAIN=auto
3947
substitutions:
4048
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
4149
# can be used as a substitution

hack/push-chart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ readonly semver_regex='^v([0-9]+)(\.[0-9]+){1,2}$'
3535
chart_version=${GIT_TAG}
3636
if [[ ${EXTRA_TAG} =~ ${semver_regex} ]]
3737
then
38-
${YQ} -i '.inferenceExtension.image.tag=strenv(EXTRA_TAG)' config/charts/inferencepool/values.yaml
38+
${YQ} -i '.inferenceExtension.image.tag=strenv(EXTRA_TAG)' config/charts/${CHART}/values.yaml
3939
chart_version=${EXTRA_TAG}
4040
fi
4141

0 commit comments

Comments
 (0)