Skip to content

Commit 185d5c1

Browse files
committed
fix typo and adjust import sequence
1 parent e7ad6e6 commit 185d5c1

File tree

1 file changed

+3
-4
lines changed
  • staging/src/k8s.io/apiserver/pkg/admission

1 file changed

+3
-4
lines changed

staging/src/k8s.io/apiserver/pkg/admission/config.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package admission
1818

1919
import (
20+
"bytes"
2021
"fmt"
2122
"io"
2223
"io/ioutil"
@@ -27,8 +28,6 @@ import (
2728
"github.com/ghodss/yaml"
2829
"github.com/golang/glog"
2930

30-
"bytes"
31-
3231
"k8s.io/apimachinery/pkg/runtime"
3332
"k8s.io/apimachinery/pkg/runtime/schema"
3433
"k8s.io/apimachinery/pkg/runtime/serializer"
@@ -151,8 +150,8 @@ func GetAdmissionPluginConfigurationFor(pluginCfg apiserver.AdmissionPluginConfi
151150
return nil, nil
152151
}
153152

154-
// GetAdmissionPluginConfiguration takes the admission configuration and returns a reader
155-
// for the specified plugin. If no specific configuration is present, we return a nil reader.
153+
// ConfigFor returns a reader for the specified plugin.
154+
// If no specific configuration is present, we return a nil reader.
156155
func (p configProvider) ConfigFor(pluginName string) (io.Reader, error) {
157156
// there is no config, so there is no potential config
158157
if p.config == nil {

0 commit comments

Comments
 (0)