Pārlūkot izejas kodu

Merge pull request #32095 from anusha-ragunathan/set-state

Explictly set state of a disabled plugin.
Anusha Ragunathan 8 gadi atpakaļ
vecāks
revīzija
cddffe327e
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      plugin/manager_linux.go

+ 2 - 0
plugin/manager_linux.go

@@ -97,6 +97,8 @@ func (pm *Manager) pluginPostStart(p *v2.Plugin, c *controller) error {
 		if retries > maxRetries {
 			logrus.Debugf("error net dialing plugin: %v", err)
 			c.restart = false
+			// While restoring plugins, we need to explicitly set the state to disabled
+			pm.config.Store.SetState(p, false)
 			shutdownPlugin(p, c, pm.containerdClient)
 			return err
 		}