def get_json_patch(object_kind: str, index: int, image_name: str):
    """
    Gives different JSONPatches as a `dict`, depending on the `object_kind`.

    The JSONPatch replaces the image at index `index` with
    `image_name`.
    """
    if object_kind == "Pod":
        return {
            "op": "replace",
            "path": f"/spec/containers/{str(index)}/image",
            "value": image_name,
        }
    elif object_kind == "CronJob":
        return {
            "op": "replace",
            "path": (
                f"/spec/jobTemplate/spec/template/spec/containers/"
                f"{str(index)}/image"
            ),
            "value": image_name,
        }
    else:
        return {
            "op": "replace",
            "path": f"/spec/template/spec/containers/{str(index)}/image",
            "value": image_name,
        }