@@ -38,7 +38,8 @@ import (
38
38
const (
39
39
kustomizationYaml = "deployments/gpu_plugin/kustomization.yaml"
40
40
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"
42
43
nfdRulesYaml = "deployments/nfd/overlays/node-feature-rules/kustomization.yaml"
43
44
containerName = "testcontainer"
44
45
tfKustomizationYaml = "deployments/gpu_tensorflow_test/kustomization.yaml"
@@ -98,6 +99,11 @@ func describe() {
98
99
framework .Failf ("unable to locate %q: %v" , rmEnabledYaml , errFailedToLocateRepoFile )
99
100
}
100
101
102
+ healthMgmtPath , errFailedToLocateRepoFile := utils .LocateRepoFile (healthMgmtYaml )
103
+ if errFailedToLocateRepoFile != nil {
104
+ framework .Failf ("unable to locate %q: %v" , healthMgmtYaml , errFailedToLocateRepoFile )
105
+ }
106
+
101
107
ginkgo .Context ("When GPU plugin is deployed [Resource:i915]" , func () {
102
108
ginkgo .AfterEach (func (ctx context.Context ) {
103
109
framework .Logf ("Removing gpu-plugin manually" )
@@ -194,6 +200,12 @@ func describe() {
194
200
})
195
201
})
196
202
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
+
197
209
ginkgo .Context ("When [Deployment:resourceManager] deployment is applied [Resource:i915]" , func () {
198
210
ginkgo .It ("check if i915 resources is available" , func (ctx context.Context ) {
199
211
e2ekubectl .RunKubectlOrDie (f .Namespace .Name , "apply" , "-k" , filepath .Dir (nfdRulesPath ))
0 commit comments