mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Fix some minor naming mistakes. (#434)
* Fix some minor naming mistakes. * Fix some minor naming mistakes.
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
)
|
||||
|
||||
func TestSliceFromBytes(t *testing.T) {
|
||||
factory := NewKustKunstructuredFactory(NewKustDecoder())
|
||||
factory := NewKunstructuredFactoryImpl(NewKustDecoder())
|
||||
testConfigMap := factory.FromMap(
|
||||
map[string]interface{}{
|
||||
"apiVersion": "v1",
|
||||
|
||||
@@ -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"}
|
||||
|
||||
|
||||
@@ -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{}{
|
||||
|
||||
Reference in New Issue
Block a user