mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Reduce unstruct notation noise in Resource construction.
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
||||
)
|
||||
|
||||
func TestGetFieldValue(t *testing.T) {
|
||||
res := NewResource(map[string]interface{}{
|
||||
res := NewResourceFromMap(map[string]interface{}{
|
||||
"Kind": "Service",
|
||||
"metadata": map[string]interface{}{
|
||||
"labels": map[string]string{
|
||||
|
||||
Reference in New Issue
Block a user