hunk.code_window: 	stdoutReader, stdoutWriter := io.Pipe()
   	defer stdoutWriter.Close()
   	errorChan := make(chan error, 1)
   	go streamFromWebsocketToWriter(websocketConn, stdinWriter, errorChan)
   	go streamFromReaderToWebsocket(websocketConn, stdoutReader, errorChan)
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit: 	// errorChan is used to propagate errors from the go routines to the caller.
  
hunk.file_path: api/http/handler/websocket/pod.go
hunk.type: add
file: import { KubernetesConfigurationTypes } from 'Kubernetes/models/configuration/models';
  
  angular.module('portainer.kubernetes').filter('kubernetesConfigurationTypeText', function () {
    'use strict';
    return function (type) {
      switch (type) {
        case KubernetesConfigurationTypes.SECRET:
          return 'Sensitive';
        case KubernetesConfigurationTypes.CONFIGMAP:
          return 'Non-sensitive';
      }
    };
  });
  