mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
fix typo and adjust import sequence
This commit is contained in:
parent
e7ad6e6008
commit
185d5c1f3d
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user