mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 00:52:55 +00:00
Unwrap ResourceList with a functionConfig but no items
This commit is contained in:
@@ -94,6 +94,29 @@ spec:
|
||||
elems:
|
||||
- a
|
||||
- b
|
||||
- c`,
|
||||
wrappingAPIVersion: ResourceListAPIVersion,
|
||||
wrappingAPIKind: ResourceListKind,
|
||||
},
|
||||
//
|
||||
//
|
||||
//
|
||||
{
|
||||
name: "wrapped_resource_list_function_config_without_items",
|
||||
input: `apiVersion: config.kubernetes.io/v1alpha1
|
||||
kind: ResourceList
|
||||
functionConfig:
|
||||
foo: bar
|
||||
elems:
|
||||
- a
|
||||
- b
|
||||
- c
|
||||
`,
|
||||
expectedItems: []string{},
|
||||
expectedFunctionConfig: `foo: bar
|
||||
elems:
|
||||
- a
|
||||
- b
|
||||
- c`,
|
||||
wrappingAPIVersion: ResourceListAPIVersion,
|
||||
wrappingAPIKind: ResourceListKind,
|
||||
|
||||
Reference in New Issue
Block a user