From 2e213467505a05b57f5ba9dd0544ae6c92a2a92c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 20 Mar 2026 12:47:04 -0700 Subject: [PATCH] Add priorityClassName test for cadvisor DaemonSet (PLAT-483) The cadvisor DaemonSet template already supports priorityClassName via the shared sourcegraph.priorityClassName helper, but had no test coverage. Add a test case to verify priorityClassName can be set on cadvisor, consistent with the existing tests for gitserver, indexedSearch, searcher, redisCache, and redisStore. --- charts/sourcegraph/tests/priorityClass_test.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/sourcegraph/tests/priorityClass_test.yaml b/charts/sourcegraph/tests/priorityClass_test.yaml index 9b64600e..0499ff97 100644 --- a/charts/sourcegraph/tests/priorityClass_test.yaml +++ b/charts/sourcegraph/tests/priorityClass_test.yaml @@ -114,3 +114,12 @@ tests: - equal: path: spec.template.spec.priorityClassName value: redis-store-class +- it: set priority class on cadvisor + template: cadvisor/cadvisor.DaemonSet.yaml + set: + cadvisor: + priorityClassName: cadvisor-class + asserts: + - equal: + path: spec.template.spec.priorityClassName + value: cadvisor-class