@@ -38,7 +38,8 @@ import (
3838const (
3939 kustomizationYaml = "deployments/gpu_plugin/kustomization.yaml"
4040 monitoringYaml = "deployments/gpu_plugin/overlays/monitoring_shared-dev_nfd/kustomization.yaml"
41- rmEnabledYaml = "deployments/gpu_plugin/overlays/fractional_resources//kustomization.yaml"
41+ rmEnabledYaml = "deployments/gpu_plugin/overlays/fractional_resources/kustomization.yaml"
42+ healthMgmtYaml = "deployments/gpu_plugin/overlays/health/kustomization.yaml"
4243 nfdRulesYaml = "deployments/nfd/overlays/node-feature-rules/kustomization.yaml"
4344 containerName = "testcontainer"
4445 tfKustomizationYaml = "deployments/gpu_tensorflow_test/kustomization.yaml"
@@ -98,6 +99,11 @@ func describe() {
9899 framework .Failf ("unable to locate %q: %v" , rmEnabledYaml , errFailedToLocateRepoFile )
99100 }
100101
102+ healthMgmtPath , errFailedToLocateRepoFile := utils .LocateRepoFile (healthMgmtYaml )
103+ if errFailedToLocateRepoFile != nil {
104+ framework .Failf ("unable to locate %q: %v" , healthMgmtYaml , errFailedToLocateRepoFile )
105+ }
106+
101107 ginkgo .Context ("When GPU plugin is deployed [Resource:i915]" , func () {
102108 ginkgo .AfterEach (func (ctx context.Context ) {
103109 framework .Logf ("Removing gpu-plugin manually" )
@@ -194,6 +200,12 @@ func describe() {
194200 })
195201 })
196202
203+ ginkgo .Context ("When [Deployment:healthManagement] deployment is applied [Resource:i915]" , func () {
204+ ginkgo .It ("check if i915 resources is available" , func (ctx context.Context ) {
205+ createPluginAndVerifyExistence (f , ctx , healthMgmtPath , "gpu.intel.com/i915" )
206+ })
207+ })
208+
197209 ginkgo .Context ("When [Deployment:resourceManager] deployment is applied [Resource:i915]" , func () {
198210 ginkgo .It ("check if i915 resources is available" , func (ctx context.Context ) {
199211 e2ekubectl .RunKubectlOrDie (f .Namespace .Name , "apply" , "-k" , filepath .Dir (nfdRulesPath ))
0 commit comments