MCPcopy
hub / github.com/istio/istio / addStartFunc

Method addStartFunc

pilot/pkg/bootstrap/server.go:844–846  ·  view source on GitHub ↗

addStartFunc appends a function to be run. These are run synchronously in order, so the function should start a go routine if it needs to do anything blocking

(name string, fn server.Component)

Source from the content-addressed store, hash-verified

842// addStartFunc appends a function to be run. These are run synchronously in order,
843// so the function should start a go routine if it needs to do anything blocking
844func (s *Server) addStartFunc(name string, fn server.Component) {
845 s.server.RunComponent(name, fn)
846}
847
848// adds a readiness probe for Istiod Server.
849func (s *Server) addReadinessProbe(name string, fn readinessProbe) {

Callers 15

NewServerFunction · 0.95
initDiscoveryServiceMethod · 0.95
initIstiodCertLoaderMethod · 0.95
initMulticlusterMethod · 0.95
startCAMethod · 0.95
initStatusManagerMethod · 0.95
initSidecarInjectorMethod · 0.95
initDNSCertsK8SRAMethod · 0.95

Calls 1

RunComponentMethod · 0.65

Tested by

no test coverage detected