From b3601ad2917be3f813da1707162e4c95378c9a6c Mon Sep 17 00:00:00 2001 From: Kai-Hsun Chen Date: Tue, 17 Oct 2023 00:37:15 -0700 Subject: [PATCH] [CRD] Inject CRD version to the Autoscaler sidecar container (#1496) (#1535) --- ray-operator/controllers/ray/common/pod.go | 4 ++++ ray-operator/controllers/ray/common/pod_test.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ray-operator/controllers/ray/common/pod.go b/ray-operator/controllers/ray/common/pod.go index 336f3e19fea..11d4a043565 100644 --- a/ray-operator/controllers/ray/common/pod.go +++ b/ray-operator/controllers/ray/common/pod.go @@ -383,6 +383,10 @@ func BuildAutoscalerContainer(autoscalerImage string) v1.Container { }, }, }, + { + Name: "KUBERAY_CRD_VER", + Value: "v1", + }, }, Command: []string{ "ray", diff --git a/ray-operator/controllers/ray/common/pod_test.go b/ray-operator/controllers/ray/common/pod_test.go index f868749e3b8..c7d033a0827 100644 --- a/ray-operator/controllers/ray/common/pod_test.go +++ b/ray-operator/controllers/ray/common/pod_test.go @@ -213,6 +213,10 @@ var autoscalerContainer = v1.Container{ }, }, }, + { + Name: "KUBERAY_CRD_VER", + Value: "v1", + }, }, Command: []string{ "ray",