At present, K8sHelper implements its own version of createPluginLoader() because we didn't want to bog down the review with extra work, and we instead marked an extraction as a TODO.
With the #2110 refactor we might as well go ahead and DRY this out. The function requires access to the health check endpoint, so an extension on Utility in ContainerCommands is probably the most apt place for the extraction.
At present, K8sHelper implements its own version of
createPluginLoader()because we didn't want to bog down the review with extra work, and we instead marked an extraction as a TODO.With the #2110 refactor we might as well go ahead and DRY this out. The function requires access to the health check endpoint, so an extension on Utility in ContainerCommands is probably the most apt place for the extraction.