File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
staging/src/k8s.io/apiserver/pkg/admission Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ limitations under the License.
17
17
package admission
18
18
19
19
import (
20
+ "bytes"
20
21
"fmt"
21
22
"io"
22
23
"io/ioutil"
@@ -27,8 +28,6 @@ import (
27
28
"github.com/ghodss/yaml"
28
29
"github.com/golang/glog"
29
30
30
- "bytes"
31
-
32
31
"k8s.io/apimachinery/pkg/runtime"
33
32
"k8s.io/apimachinery/pkg/runtime/schema"
34
33
"k8s.io/apimachinery/pkg/runtime/serializer"
@@ -151,8 +150,8 @@ func GetAdmissionPluginConfigurationFor(pluginCfg apiserver.AdmissionPluginConfi
151
150
return nil , nil
152
151
}
153
152
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.
156
155
func (p configProvider ) ConfigFor (pluginName string ) (io.Reader , error ) {
157
156
// there is no config, so there is no potential config
158
157
if p .config == nil {
You can’t perform that action at this time.
0 commit comments