Skip to content

Commit 7980331

Browse files
committed
More improvements to the self-annotate technique
Signed-off-by: Jun Duan <jun.duan.phd@outlook.com>
1 parent bd829c6 commit 7980331

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

.github/workflows/ci-e2e-openshift.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,6 @@ jobs:
510510
kubectl delete launcherpopulationpolicy -n "$FMA_NAMESPACE" -l fma-e2e-instance --ignore-not-found || true
511511
kubectl delete inferenceserverconfig -n "$FMA_NAMESPACE" -l fma-e2e-instance --ignore-not-found || true
512512
kubectl delete launcherconfig -n "$FMA_NAMESPACE" -l fma-e2e-instance --ignore-not-found || true
513-
kubectl delete rolebinding -n "$FMA_NAMESPACE" -l fma-e2e-instance --ignore-not-found || true
514-
kubectl delete role -n "$FMA_NAMESPACE" -l fma-e2e-instance --ignore-not-found || true
515-
kubectl delete sa -n "$FMA_NAMESPACE" -l fma-e2e-instance --ignore-not-found || true
516513
# Wait for test pods to terminate
517514
sleep 10
518515
echo "Test objects cleaned up"

inference_server/launcher/launcher_pod_notifier.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,8 @@ def get_pod_annotations(
9494
return pod.metadata.annotations or {}
9595

9696

97-
def patch_pod_annotations(
98-
api: client.CoreV1Api,
99-
namespace: str,
100-
pod_name: str,
101-
*,
102-
signature: str,
97+
def patch_pod_signature(
98+
api: client.CoreV1Api, namespace: str, pod_name: str, signature: str
10399
) -> None:
104100
body = {
105101
"metadata": {
@@ -109,12 +105,6 @@ def patch_pod_annotations(
109105
}
110106
}
111107
api.patch_namespaced_pod(name=pod_name, namespace=namespace, body=body)
112-
113-
114-
def patch_pod_signature(
115-
api: client.CoreV1Api, namespace: str, pod_name: str, signature: str
116-
) -> None:
117-
patch_pod_annotations(api, namespace, pod_name, signature=signature)
118108
logger.info(
119109
"Published launcher state change",
120110
extra={"pod": pod_name, "signature": signature},

test/e2e/mkobjs-openshift.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if out=$(kubectl apply "${ns_flag[@]}" -f - 2>&1 <<EOF
5252
apiVersion: v1
5353
kind: ServiceAccount
5454
metadata:
55-
name: launcher-sa-$inst
55+
name: launcher-$inst
5656
labels:
5757
fma-e2e-instance: "$inst"
5858
---
@@ -83,7 +83,7 @@ roleRef:
8383
name: launcher-pod-state-writer-$inst
8484
subjects:
8585
- kind: ServiceAccount
86-
name: launcher-sa-$inst
86+
name: launcher-$inst
8787
---
8888
apiVersion: fma.llm-d.ai/v1alpha1
8989
kind: InferenceServerConfig
@@ -156,7 +156,7 @@ spec:
156156
podTemplate:
157157
spec:
158158
${runtime_class}
159-
serviceAccountName: launcher-sa-$inst
159+
serviceAccountName: launcher-$inst
160160
containers:
161161
- name: inference-server
162162
image: ${LAUNCHER_IMAGE}

0 commit comments

Comments
 (0)