Skip to content

Commit 6bc1c1f

Browse files
additional cleaup
1 parent 6641e3a commit 6bc1c1f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Diff for: pkg/daemon/pinned_image_set.go

-13
Original file line numberDiff line numberDiff line change
@@ -1160,19 +1160,6 @@ func (p *PinnedImageSetManager) getImageSize(ctx context.Context, imageName, aut
11601160
return totalSize, nil
11611161
}
11621162

1163-
// getPinnedImageSetSpecForPools returns a list of MachineConfigNodeSpecPinnedImageSet for the given pools.
1164-
func getPinnedImageSetSpecForPools(pools []*mcfgv1.MachineConfigPool) []mcfgv1alpha1.MachineConfigNodeSpecPinnedImageSet {
1165-
var mcnPinnedImageSetSpec []mcfgv1alpha1.MachineConfigNodeSpecPinnedImageSet
1166-
for _, pool := range pools {
1167-
for _, imageSets := range pool.Spec.PinnedImageSets {
1168-
mcnPinnedImageSetSpec = append(mcnPinnedImageSetSpec, mcfgv1alpha1.MachineConfigNodeSpecPinnedImageSet{
1169-
Name: imageSets.Name,
1170-
})
1171-
}
1172-
}
1173-
return mcnPinnedImageSetSpec
1174-
}
1175-
11761163
// ensurePullImage first checks if the image exists locally and then will attempt to pull
11771164
// the image from the container runtime with a retry/backoff.
11781165
func ensurePullImage(ctx context.Context, client *cri.Client, backoff wait.Backoff, image string, authConfig *runtimeapi.AuthConfig) error {

0 commit comments

Comments
 (0)