mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Make ResourceList follow k8s api conventions
Make optional fields as pointers. Add omitempty for optional fields.
This commit is contained in:
@@ -322,11 +322,11 @@ func ExampleBuild_validate() {
|
||||
validationResults = append(validationResults, &framework.Result{
|
||||
Severity: framework.Error,
|
||||
Message: "field is required",
|
||||
ResourceRef: yaml.ResourceIdentifier{
|
||||
ResourceRef: &yaml.ResourceIdentifier{
|
||||
TypeMeta: meta.TypeMeta,
|
||||
NameMeta: meta.ObjectMeta.NameMeta,
|
||||
},
|
||||
Field: framework.Field{
|
||||
Field: &framework.Field{
|
||||
Path: "spec.replicas",
|
||||
ProposedValue: "1",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user