Skip to content

Commit 3425bac

Browse files
committed
Check if ovn-k should be expected
1 parent ea35a37 commit 3425bac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/healthcheck/microshift_core_workloads.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ func getCoreMicroShiftWorkloads() (map[string]NamespaceWorkloads, error) {
1414
}
1515

1616
workloads := map[string]NamespaceWorkloads{
17-
"openshift-ovn-kubernetes": {
18-
DaemonSets: []string{"ovnkube-master", "ovnkube-node"},
19-
},
2017
"openshift-service-ca": {
2118
Deployments: []string{"service-ca"},
2219
},
@@ -31,6 +28,11 @@ func getCoreMicroShiftWorkloads() (map[string]NamespaceWorkloads, error) {
3128
},
3229
}
3330
fillOptionalWorkloadsIfApplicable(cfg, workloads)
31+
if cfg.Network.IsEnabled() {
32+
workloads["openshift-ovn-kubernetes"] = NamespaceWorkloads{
33+
DaemonSets: []string{"ovnkube-master", "ovnkube-node"},
34+
}
35+
}
3436

3537
return workloads, nil
3638
}

0 commit comments

Comments
 (0)