Merge pull request #110141 from chymy/kubeadm-remove-imagespull

kubeadm: remove unused ImagesPull
This commit is contained in:
Kubernetes Prow Robot 2022-05-20 03:45:12 -07:00 committed by GitHub
commit 0f8b0e14ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,20 +319,6 @@ func newCmdConfigImagesPull() *cobra.Command {
return cmd
}
// ImagesPull is the struct used to hold information relating to image pulling
type ImagesPull struct {
runtime utilruntime.ContainerRuntime
images []string
}
// NewImagesPull initializes and returns the `kubeadm config images pull` command
func NewImagesPull(runtime utilruntime.ContainerRuntime, images []string) *ImagesPull {
return &ImagesPull{
runtime: runtime,
images: images,
}
}
// PullControlPlaneImages pulls all images that the ImagesPull knows about
func PullControlPlaneImages(runtime utilruntime.ContainerRuntime, cfg *kubeadmapi.ClusterConfiguration) error {
images := images.GetControlPlaneImages(cfg)