Skip to content

Remove unused Run function from generate #2447

@NoSkillGirl

Description

@NoSkillGirl

@realshuting Do we still need this ?
Since it's not doing anything.

// Run starts the generate request spec
func (g *Generator) Run(workers int, stopCh <-chan struct{}) {
	logger := g.log
	defer utilruntime.HandleCrash()

	logger.V(4).Info("starting")
	defer func() {
		logger.V(4).Info("shutting down")
	}()

	if !cache.WaitForCacheSync(stopCh, g.grSynced) {
		logger.Info("failed to sync informer cache")
		return
	}

	<-g.stopCh
}

Originally posted by @NoSkillGirl in #1931 (comment)

Metadata

Metadata

Labels

generationIssues pertaining to the generate ability.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions