hunk.code_window: // StartExecProcess will start an exec process inside a container located inside a pod inside a specific namespace
   // using the specified command. The stdin parameter will be bound to the stdin process and the stdout process will write
   // to the stdout parameter.
   // This function only works against a local endpoint using an in-cluster config with the user's SA token.
   func (kcl *KubeClient) StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer) error {
   	config, err := rest.InClusterConfig()
   	if err != nil {
  
hunk.labels: keep keep keep keep keep replace keep keep
hunk.after_edit: // This is a blocking operation.
   func (kcl *KubeClient) StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer, errChan chan error) {
  
hunk.file_path: api/kubernetes/cli/exec.go
hunk.type: replace
file: angular.module('portainer.app').factory('PaginationService', [
    'LocalStorage',
    'PAGINATION_MAX_ITEMS',
    function PaginationServiceFactory(LocalStorage, PAGINATION_MAX_ITEMS) {
      'use strict';
  
      var service = {};
  
      service.getPaginationLimit = function (key) {
        var paginationLimit = PAGINATION_MAX_ITEMS;
  
        var storedLimit = LocalStorage.getPaginationLimit(key);
        if (storedLimit !== null) {
          paginationLimit = storedLimit;
        }
        return '' + paginationLimit;
      };
  
      service.setPaginationLimit = function (key, limit) {
        LocalStorage.storePaginationLimit(key, limit);
      };
  
      return service;
    },
  ]);
  