Fix some minor naming mistakes. (#434)

* Fix some minor naming mistakes.

* Fix some minor naming mistakes.
This commit is contained in:
Jeff Regan
2018-10-08 15:58:44 -07:00
committed by Jingfang Liu
parent fd3cd64e11
commit 30814302af
22 changed files with 35 additions and 35 deletions

View File

@@ -29,8 +29,8 @@ type KunstructurerFactoryImpl struct {
var _ ifc.KunstructuredFactory = &KunstructurerFactoryImpl{}
// NewKustKunstructuredFactory returns a factory.
func NewKustKunstructuredFactory(d ifc.Decoder) ifc.KunstructuredFactory {
// NewKunstructuredFactoryImpl returns a factory.
func NewKunstructuredFactoryImpl(d ifc.Decoder) ifc.KunstructuredFactory {
return &KunstructurerFactoryImpl{decoder: d}
}

View File

@@ -24,7 +24,7 @@ import (
)
func TestSliceFromBytes(t *testing.T) {
factory := NewKustKunstructuredFactory(NewKustDecoder())
factory := NewKunstructuredFactoryImpl(NewKustDecoder())
testConfigMap := factory.FromMap(
map[string]interface{}{
"apiVersion": "v1",

View File

@@ -29,7 +29,7 @@ import (
)
var rf = resource.NewFactory(
k8sdeps.NewKustKunstructuredFactory(k8sdeps.NewKustDecoder()))
k8sdeps.NewKunstructuredFactoryImpl(k8sdeps.NewKustDecoder()))
var deploy = gvk.Gvk{Group: "apps", Version: "v1", Kind: "Deployment"}
var foo = gvk.Gvk{Group: "example.com", Version: "v1", Kind: "Foo"}

View File

@@ -21,7 +21,7 @@ import (
)
func TestGetFieldValue(t *testing.T) {
factory := NewKustKunstructuredFactory(NewKustDecoder())
factory := NewKunstructuredFactoryImpl(NewKustDecoder())
kunstructured := factory.FromMap(map[string]interface{}{
"Kind": "Service",
"metadata": map[string]interface{}{