From 525b8cc4b26c529aca720bf136b0ffb29f1f266f Mon Sep 17 00:00:00 2001 From: chymy Date: Fri, 20 May 2022 10:49:52 +0800 Subject: [PATCH] kubeadm: remove unused ImagesPull Signed-off-by: chymy --- cmd/kubeadm/app/cmd/config.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cmd/kubeadm/app/cmd/config.go b/cmd/kubeadm/app/cmd/config.go index 99e68706b4f..1edb54298dc 100644 --- a/cmd/kubeadm/app/cmd/config.go +++ b/cmd/kubeadm/app/cmd/config.go @@ -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)