anchor.diff:          encode_if_defined(EphemeralStorageLimit)
       ),
   
  -    maps:update_with(
  -        <<"annotations">>,
  -        fun(Annotations) -> json_utils:merge([Annotations, EphemeralStorageAnnotations]) end,
  -        EphemeralStorageAnnotations,
  -        FunctionDefinition#{<<"requests">> => Requests, <<"limits">> => Limits2}
  -    ).
  -
  -
  -%% @private
  --spec add_function_name_annotation(json_utils:json_map(), function_name()) ->
  -    json_utils:json_map().
  -add_function_name_annotation(FunctionDefinition, FunctionName) ->
  -    FunctionNameAnnotation = #{<<"function.openfaas.onedata.org/name">> => FunctionName},
  -    maps:update_with(
  -        <<"annotations">>,
  -        fun(Annotations) -> maps:merge(Annotations, FunctionNameAnnotation) end,
  -        FunctionNameAnnotation,
  -        FunctionDefinition
  +    update_function_annotations(
  +        FunctionDefinition#{<<"requests">> => Requests, <<"limits">> => Limits2},
  +        EphemeralStorageAnnotations
       ).
   
   
  
positive.code: 
  
  %% @private
  -spec add_oneclient_annotations_if_necessary(json_utils:json_map(), initiation_ctx()) ->
      json_utils:json_map().
  add_oneclient_annotations_if_necessary(FunctionDefinition, #initiation_ctx{
      executor = #atm_openfaas_task_executor{operation_spec = #atm_openfaas_operation_spec{
          docker_execution_options = #atm_docker_execution_options{mount_oneclient = false}
      }}}
  ) ->
      FunctionDefinition;
  add_oneclient_annotations_if_necessary(FunctionDefinition, #initiation_ctx{
      task_executor_initiation_ctx = #atm_task_executor_initiation_ctx{
          workflow_execution_ctx = AtmWorkflowExecutionCtx
      },
  
negative.code:     )),
      OneclientImage = get_oneclient_image(),
  
      update_function_annotations(FunctionDefinition, #{
          <<"oneclient.openfaas.onedata.org/inject">> => <<"enabled">>,
          <<"oneclient.openfaas.onedata.org/image">> => OneclientImage,
          <<"oneclient.openfaas.onedata.org/space_id">> => SpaceId,
  