Skip to content

Commit 616cacd

Browse files
committed
fix: apply kepler tag to deploy manifests
Signed-off-by: Sunyanan Choochotkaew <[email protected]>
1 parent bd6e277 commit 616cacd

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.github/workflows/integration-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,20 @@ jobs:
7878
make cleanup
7979
env:
8080
OPTS: "ESTIMATOR${{ inputs.additional_opts }}"
81+
KEPLER_IMAGE_VERSION: "${{ inputs.kepler_tag }}"
8182
- name: test deploying with only server
8283
run: |
8384
make deploy
8485
make e2e-test
8586
make cleanup
8687
env:
8788
OPTS: "SERVER${{ inputs.additional_opts }}"
89+
KEPLER_IMAGE_VERSION: "${{ inputs.kepler_tag }}"
8890
- name: test deploying with estimator and model server
8991
run: |
9092
make deploy
9193
make e2e-test
9294
make cleanup
9395
env:
9496
OPTS: "ESTIMATOR SERVER${{ inputs.additional_opts }}"
97+
KEPLER_IMAGE_VERSION: "${{ inputs.kepler_tag }}"

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
export IMAGE_REGISTRY ?= quay.io/sustainable_computing_io
22
IMAGE_NAME := kepler_model_server
3-
IMAGE_VERSION := v0.7
3+
IMAGE_VERSION := latest
4+
KEPLER_IMAGE_NAME := kepler
5+
KEPLER_IMAGE_VERSION := release-0.7.11
46

57
IMAGE ?= $(IMAGE_REGISTRY)/$(IMAGE_NAME):$(IMAGE_VERSION)
8+
KEPLER_IMAGE ?= $(IMAGE_REGISTRY)/$(KEPLER_IMAGE_NAME):$(KEPLER_IMAGE_VERSION)
69
BASE_IMAGE ?= $(IMAGE_REGISTRY)/$(IMAGE_NAME)_base:$(IMAGE_VERSION)
7-
LATEST_TAG_IMAGE := $(IMAGE_REGISTRY)/$(IMAGE_NAME):latest
810
TEST_IMAGE := $(IMAGE)-test
911

1012
CTR_CMD = docker
@@ -115,6 +117,7 @@ test: \
115117
set-image:
116118
@cd ./manifests/base && kustomize edit set image kepler_model_server=$(IMAGE)
117119
@cd ./manifests/server && kustomize edit set image kepler_model_server=$(IMAGE)
120+
@cd ./manifests/kepler && kustomize edit set image kepler=$(KEPLER_IMAGE)
118121

119122
# deploy
120123
_deploy:
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- github.com/sustainable-computing-io/kepler/manifests/k8s/config/base
4+
- github.com/sustainable-computing-io/kepler/manifests/k8s/config/base
55

66
patchesStrategicMerge:
7-
- ./patch/patch-ci.yaml
7+
- ./patch/patch-ci.yaml
8+
images:
9+
- name: kepler
10+
newName: quay.io/sustainable_computing_io/kepler
11+
newTag: release-0.7.11

manifests/kepler/patch/patch-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ spec:
1717
containers:
1818
- name: kepler-exporter
1919
imagePullPolicy: IfNotPresent
20-
image: quay.io/sustainable_computing_io/kepler:release-0.7.11
20+
image: kepler:latest

0 commit comments

Comments
 (0)