Skip to content

Commit 324935c

Browse files
committed
update: code review
- move image tags from Makefile.tools.mk back to Makefile.mk - update docuement to reflact how image and tag are created - do not export image tag env variables - fix patch-deployments.yaml after EPP_TAG is not used but should only use EPP_IMAGE - fix kubernetes-dev-env.sh for EPP_IMAGE - remove flag on golangci_lint fmt Signed-off-by: Wen Zhou <wenzhou@redhat.com>
1 parent 28e8a12 commit 324935c

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ curl -s -w '\n' http://localhost:8080/v1/completions -H 'Content-Type: applicati
227227
228228
#### Environment Configurateion
229229

230-
**1. Setting the EPP image and tag:**
230+
**1. Setting the EPP image registry and tag:**
231231

232-
You can optionally set a custom EPP image and tag (otherwise, defaults will be used):
232+
You can optionally set a custom image registry and tag (otherwise, defaults will be used):
233233

234234
```bash
235235
export IMAGE_REGISTRY="<YOUR_REGISTRY>"

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ SIDECAR_NAME ?= pd-sidecar
2121
IMAGE_REGISTRY ?= ghcr.io/llm-d
2222
IMAGE_TAG_BASE ?= $(IMAGE_REGISTRY)/$(PROJECT_NAME)
2323
EPP_TAG ?= dev
24-
export EPP_TAG
2524
export EPP_IMAGE ?= $(IMAGE_TAG_BASE):$(EPP_TAG)
2625
SIDECAR_TAG ?= dev
27-
export SIDECAR_TAG
2826
SIDECAR_IMAGE_TAG_BASE ?= $(IMAGE_REGISTRY)/$(SIDECAR_IMAGE_NAME)
2927
export SIDECAR_IMAGE ?= $(SIDECAR_IMAGE_TAG_BASE):$(SIDECAR_TAG)
30-
NAMESPACE ?= hc4ai-operator
28+
VLLM_SIMULATOR_TAG ?= v0.6.1
3129
VLLM_SIMULATOR_TAG_BASE ?= $(IMAGE_REGISTRY)/$(VLLM_SIMULATOR_IMAGE_NAME)
3230
export VLLM_SIMULATOR_IMAGE ?= $(VLLM_SIMULATOR_TAG_BASE):$(VLLM_SIMULATOR_TAG)
31+
NAMESPACE ?= hc4ai-operator
3332

3433
# Map go arch to platform-specific arch
3534
ifeq ($(TARGETOS),darwin)
@@ -132,7 +131,7 @@ clean: ## Clean build artifacts, tools and caches
132131
format: check-golangci-lint ## Format Go source files
133132
@printf "\033[33;1m==== Running go fmt ====\033[0m\n"
134133
@gofmt -l -w $(SRC)
135-
$(GOLANGCI_LINT) fmt --fix
134+
$(GOLANGCI_LINT) fmt
136135

137136
.PHONY: lint
138137
lint: check-golangci-lint check-typos ## Run lint

Makefile.kind.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ env-dev-kind: image-build ## Run under kind ($(KIND_CLUSTER_NAME))
1313
GATEWAY_HOST_PORT=$(KIND_GATEWAY_HOST_PORT) \
1414
IMAGE_REGISTRY=$(IMAGE_REGISTRY) \
1515
EPP_IMAGE=$(EPP_IMAGE) \
16-
EPP_TAG=$(EPP_TAG) \
1716
VLLM_SIMULATOR_IMAGE=${VLLM_SIMULATOR_IMAGE} \
18-
VLLM_SIMULATOR_TAG=$(VLLM_SIMULATOR_TAG) \
1917
SIDECAR_IMAGE=$(SIDECAR_IMAGE) \
20-
SIDECAR_TAG=$(SIDECAR_TAG) \
2118
./scripts/kind-dev-env.sh; \
2219
fi
2320

Makefile.tools.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ GINKGO_VERSION ?= v2.27.2
1818
GOLANGCI_LINT_VERSION ?= v2.1.6
1919
KUSTOMIZE_VERSION ?= v5.5.0
2020
TYPOS_VERSION ?= v1.34.0
21-
VLLM_SIMULATOR_TAG ?= v0.6.1
22-
export VLLM_SIMULATOR_TAG
2321

2422
## Python Configuration
2523
PYTHON_VERSION ?= 3.12

deploy/environments/dev/kubernetes-kgateway/patch-deployments.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
spec:
88
containers:
99
- name: epp
10-
image: ${EPP_IMAGE}:${EPP_TAG}
10+
image: ${EPP_IMAGE}
1111
imagePullPolicy: Always
1212
args:
1313
- --pool-name

scripts/kubernetes-dev-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ export POOL_NAME="${POOL_NAME:-${MODEL_NAME_SAFE}-inference-pool}"
7171
# Endpoint Picker (EPP) deployment name
7272
export EPP_NAME="${EPP_NAME:-${MODEL_NAME_SAFE}-endpoint-picker}"
7373

74-
# EPP container image name
75-
export EPP_IMAGE="${EPP_IMAGE:-${IMAGE_REGISTRY}/llm-d-inference-scheduler}"
76-
7774
# EPP image tag
7875
export EPP_TAG="${EPP_TAG:-v0.1.0}"
7976

77+
# EPP container image (full reference including tag)
78+
export EPP_IMAGE="${EPP_IMAGE:-${IMAGE_REGISTRY}/llm-d-inference-scheduler:${EPP_TAG}}"
79+
8080
# Whether P/D mode is enabled for this deployment
8181
export PD_ENABLED="\"${PD_ENABLED:-false}\""
8282

0 commit comments

Comments
 (0)