Skip to content

Commit

Permalink
fix(cni): retry loading images (#4860)
Browse files Browse the repository at this point in the history
Signed-off-by: slonka <slonka@users.noreply.github.com>
  • Loading branch information
slonka authored Aug 19, 2022
1 parent afb8644 commit 12956ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/framework/k8s_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,14 @@ func (c *K8sCluster) CreateNode(name string, label string) error {
}

func (c *K8sCluster) LoadImages(names ...string) error {
_, err := retry.DoWithRetryE(c.GetTesting(), "load images", 2, time.Second*5, func() (string, error) {
err := c.loadImages(names...)
return "Loaded images " + strings.Join(names, ", "), err
})
return err
}

func (c *K8sCluster) loadImages(names ...string) error {
switch Config.K8sType {
case K3dK8sType, K3dCalicoK8sType:
version := kuma_version.Build.Version
Expand Down

0 comments on commit 12956ec

Please sign in to comment.