hunk.code_window: 		SetupUserServiceAccount(userID int, teamIDs []int, restrictDefaultNamespace bool) error
   		GetServiceAccount(tokendata *TokenData) (*v1.ServiceAccount, error)
   		GetServiceAccountBearerToken(userID int) (string, error)
   		CreateUserShellPod(ctx context.Context, serviceAccountName string) (*KubernetesShellPod, error)
   		StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer) error
   		NamespaceAccessPoliciesDeleteNamespace(namespace string) error
   		GetNodesLimits() (K8sNodesLimits, error)
   		GetNamespaceAccessPolicies() (map[string]K8sNamespaceAccessPolicy, error)
   		UpdateNamespaceAccessPolicies(accessPolicies map[string]K8sNamespaceAccessPolicy) error
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: 		StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer, errChan chan error)
  
hunk.file_path: api/portainer.go
hunk.type: replace
file: angular.module('portainer.kubernetes').factory('KubernetesMetrics', [
    '$resource',
    'API_ENDPOINT_ENDPOINTS',
    'EndpointProvider',
    function KubernetesMetrics($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
      'use strict';
      return function (namespace) {
        const url = API_ENDPOINT_ENDPOINTS + '/:endpointId/kubernetes/apis/metrics.k8s.io/v1beta1';
        const podUrl = `${url}${namespace ? '/namespaces/:namespace' : ''}/pods/:id`;
  
        return $resource(
          url,
          {
            endpointId: EndpointProvider.endpointID,
            namespace: namespace,
          },
          {
            capabilities: { method: 'GET' },
            getPod: {
              method: 'GET',
              url: podUrl,
            },
            getNode: {
              method: 'GET',
              url: `${url}/nodes/:id`,
            },
            getPods: {
              method: 'GET',
              url: `${url}/namespaces/:namespace/pods`,
            },
            getNodes: {
              method: 'GET',
              url: `${url}/nodes`,
            },
          }
        );
      };
    },
  ]);
  