fix typo and adjust import sequence

This commit is contained in:
hzxuzhonghu 2017-11-08 11:43:56 +08:00
parent e7ad6e6008
commit 185d5c1f3d

View File

@ -17,6 +17,7 @@ limitations under the License.
package admission package admission
import ( import (
"bytes"
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
@ -27,8 +28,6 @@ import (
"github.com/ghodss/yaml" "github.com/ghodss/yaml"
"github.com/golang/glog" "github.com/golang/glog"
"bytes"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/runtime/serializer" "k8s.io/apimachinery/pkg/runtime/serializer"
@ -151,8 +150,8 @@ func GetAdmissionPluginConfigurationFor(pluginCfg apiserver.AdmissionPluginConfi
return nil, nil return nil, nil
} }
// GetAdmissionPluginConfiguration takes the admission configuration and returns a reader // ConfigFor returns a reader for the specified plugin.
// for the specified plugin. If no specific configuration is present, we return a nil reader. // If no specific configuration is present, we return a nil reader.
func (p configProvider) ConfigFor(pluginName string) (io.Reader, error) { func (p configProvider) ConfigFor(pluginName string) (io.Reader, error) {
// there is no config, so there is no potential config // there is no config, so there is no potential config
if p.config == nil { if p.config == nil {