kubelet/image_manager: rename EnsureImageExists arguments at the interface level

These were previously only renamed at the implementation and the
interface itself was forgotten about.

Signed-off-by: Stanislav Láznička <slznika@microsoft.com>
This commit is contained in:
Stanislav Láznička
2025-07-01 11:00:43 +02:00
committed by Stanislav Láznička
parent 973779a398
commit 89f1edd516

View File

@@ -47,8 +47,8 @@ var (
// Implementations are expected to abstract the underlying runtimes.
// Implementations are expected to be thread safe.
type ImageManager interface {
// EnsureImageExists ensures that image specified by `imgRef` exists.
EnsureImageExists(ctx context.Context, objRef *v1.ObjectReference, pod *v1.Pod, imgRef string, pullSecrets []v1.Secret, podSandboxConfig *runtimeapi.PodSandboxConfig, podRuntimeHandler string, pullPolicy v1.PullPolicy) (string, string, error)
// EnsureImageExists ensures that image specified by `requestedImage` exists.
EnsureImageExists(ctx context.Context, objRef *v1.ObjectReference, pod *v1.Pod, requestedImage string, pullSecrets []v1.Secret, podSandboxConfig *runtimeapi.PodSandboxConfig, podRuntimeHandler string, pullPolicy v1.PullPolicy) (imageRef, message string, err error)
// TODO(ronl): consolidating image managing and deleting operation in this interface
}