package images
import "k8s.io/kubernetes/cmd/kubeadm/app/images"
Index ¶
- func GetAllImages(cfg *kubeadmapi.MasterConfiguration) []string
- func GetCoreImage(image, repoPrefix, k8sVersion, overrideImage string) string
- func GetGenericArchImage(prefix, image, tag string) string
- func GetGenericImage(prefix, image, tag string) string
- type CRInterfacer
- func NewCRInterfacer(execer utilsexec.Interface, criSocket string) (*CRInterfacer, error)
- func (cri *CRInterfacer) Exists(image string) error
- func (cri *CRInterfacer) Pull(image string) error
- type Existence
- type Images
- type Puller
Functions ¶
func GetAllImages ¶
func GetAllImages(cfg *kubeadmapi.MasterConfiguration) []string
GetAllImages returns a list of container images kubeadm expects to use on a control plane node
func GetCoreImage ¶
GetCoreImage generates and returns the image for the core Kubernetes components or returns overrideImage if specified
func GetGenericArchImage ¶
GetGenericArchImage generates and returns an image based on the current runtime arch
func GetGenericImage ¶
GetGenericImage generates and returns a platform agnostic image (backed by manifest list)
Types ¶
type CRInterfacer ¶
type CRInterfacer struct {
// contains filtered or unexported fields
}
CRInterfacer is a struct that interfaces with the container runtime
func NewCRInterfacer ¶
func NewCRInterfacer(execer utilsexec.Interface, criSocket string) (*CRInterfacer, error)
NewCRInterfacer sets up and returns a CRInterfacer
func (*CRInterfacer) Exists ¶
func (cri *CRInterfacer) Exists(image string) error
Exists checks to see if the image exists on the system already Returns an error if the image is not found.
func (*CRInterfacer) Pull ¶
func (cri *CRInterfacer) Pull(image string) error
Pull pulls the actual image using either crictl or docker
type Existence ¶
Existence is an interface to determine if an image exists on the system A nil error means the image was found
type Images ¶
Images defines the set of behaviors needed for images relating to the CRI
type Puller ¶
Puller is an interface for pulling images
Source Files ¶
images.go interface.go
- Version
- v1.11.8-beta.0
- Published
- Jan 24, 2019
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 33 minutes ago –
Tools for package owners.