Skip to content
Permalink
Browse files
Merge pull request #110141 from chymy/kubeadm-remove-imagespull
kubeadm: remove unused ImagesPull
  • Loading branch information
k8s-ci-robot committed May 20, 2022
2 parents 5debaee + 525b8cc commit 0f8b0e14aeb292deef0c652cd9aab4aaf6da7468
Showing 1 changed file with 0 additions and 14 deletions.
@@ -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)

0 comments on commit 0f8b0e1

Please sign in to comment.