Merge pull request #102700 from pohly/disable-health-monitor-controller

e2e storage: disable health-monitor controller in hostpath deployment
This commit is contained in:
Kubernetes Prow Robot 2021-06-08 17:29:47 -07:00 committed by GitHub
commit ccbb38815e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,16 +242,19 @@ func (h *hostpathCSIDriver) PrepareTest(f *framework.Framework) (*storageframewo
return err return err
} }
// Remove csi-external-health-monitor-agent because it is // Remove csi-external-health-monitor-agent and
// obsolete and shouldn't have been deployed by csi-driver-host-path v1.7.2. // csi-external-health-monitor-controller
// This can be removed when updating to a newer driver that // containers. The agent is obsolete.
// doesn't deploy the agent. // The controller is not needed for any of the
// tests and is causing too much overhead when
// running in a large cluster (see
// https://github.com/kubernetes/kubernetes/issues/102452#issuecomment-856991009).
switch item := item.(type) { switch item := item.(type) {
case *appsv1.StatefulSet: case *appsv1.StatefulSet:
var containers []v1.Container var containers []v1.Container
for _, container := range item.Spec.Template.Spec.Containers { for _, container := range item.Spec.Template.Spec.Containers {
switch container.Name { switch container.Name {
case "csi-external-health-monitor-agent": case "csi-external-health-monitor-agent", "csi-external-health-monitor-controller":
// Remove these containers. // Remove these containers.
default: default:
// Keep the others. // Keep the others.