Skip to content

Commit

Permalink
Merge pull request #377 from sunya-ch/ci
Browse files Browse the repository at this point in the history
fix: apply kepler tag to deploy manifests
  • Loading branch information
sthaha authored Aug 20, 2024
2 parents 62109bc + 616cacd commit 6cb28d7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,20 @@ jobs:
make cleanup
env:
OPTS: "ESTIMATOR${{ inputs.additional_opts }}"
KEPLER_IMAGE_VERSION: "${{ inputs.kepler_tag }}"
- name: test deploying with only server
run: |
make deploy
make e2e-test
make cleanup
env:
OPTS: "SERVER${{ inputs.additional_opts }}"
KEPLER_IMAGE_VERSION: "${{ inputs.kepler_tag }}"
- name: test deploying with estimator and model server
run: |
make deploy
make e2e-test
make cleanup
env:
OPTS: "ESTIMATOR SERVER${{ inputs.additional_opts }}"
KEPLER_IMAGE_VERSION: "${{ inputs.kepler_tag }}"
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export IMAGE_REGISTRY ?= quay.io/sustainable_computing_io
IMAGE_NAME := kepler_model_server
IMAGE_VERSION := v0.7
IMAGE_VERSION := latest
KEPLER_IMAGE_NAME := kepler
KEPLER_IMAGE_VERSION := release-0.7.11

IMAGE ?= $(IMAGE_REGISTRY)/$(IMAGE_NAME):$(IMAGE_VERSION)
KEPLER_IMAGE ?= $(IMAGE_REGISTRY)/$(KEPLER_IMAGE_NAME):$(KEPLER_IMAGE_VERSION)
BASE_IMAGE ?= $(IMAGE_REGISTRY)/$(IMAGE_NAME)_base:$(IMAGE_VERSION)
LATEST_TAG_IMAGE := $(IMAGE_REGISTRY)/$(IMAGE_NAME):latest
TEST_IMAGE := $(IMAGE)-test

CTR_CMD = docker
Expand Down Expand Up @@ -159,6 +161,7 @@ test: \
set-image:
@cd ./manifests/base && kustomize edit set image kepler_model_server=$(IMAGE)
@cd ./manifests/server && kustomize edit set image kepler_model_server=$(IMAGE)
@cd ./manifests/kepler && kustomize edit set image kepler=$(KEPLER_IMAGE)

# deploy
_deploy:
Expand Down
8 changes: 6 additions & 2 deletions manifests/kepler/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/sustainable-computing-io/kepler/manifests/k8s/config/base
- github.com/sustainable-computing-io/kepler/manifests/k8s/config/base

patchesStrategicMerge:
- ./patch/patch-ci.yaml
- ./patch/patch-ci.yaml
images:
- name: kepler
newName: quay.io/sustainable_computing_io/kepler
newTag: release-0.7.11
2 changes: 1 addition & 1 deletion manifests/kepler/patch/patch-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ spec:
containers:
- name: kepler-exporter
imagePullPolicy: IfNotPresent
image: quay.io/sustainable_computing_io/kepler:release-0.7.11
image: kepler:latest

0 comments on commit 6cb28d7

Please sign in to comment.