mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
kubeadm: remove unused ImagesPull
Signed-off-by: chymy <chang.min1@zte.com.cn>
This commit is contained in:
parent
4ab90ccebb
commit
525b8cc4b2
@ -319,20 +319,6 @@ func newCmdConfigImagesPull() *cobra.Command {
|
|||||||
return cmd
|
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
|
// PullControlPlaneImages pulls all images that the ImagesPull knows about
|
||||||
func PullControlPlaneImages(runtime utilruntime.ContainerRuntime, cfg *kubeadmapi.ClusterConfiguration) error {
|
func PullControlPlaneImages(runtime utilruntime.ContainerRuntime, cfg *kubeadmapi.ClusterConfiguration) error {
|
||||||
images := images.GetControlPlaneImages(cfg)
|
images := images.GetControlPlaneImages(cfg)
|
||||||
|
Loading…
Reference in New Issue
Block a user