Skip to content

Commit

Permalink
use OpenAPIV3 for kubectl diff
Browse files Browse the repository at this point in the history
Kubernetes-commit: e7216c6623049d713fbf7cc04e2c42eb957a607e
  • Loading branch information
Jefftree authored and k8s-publishing-bot committed Sep 15, 2023
1 parent 97be40b commit 5a8e3a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/strategicpatch/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func resolve(l *PatchMetaFromOpenAPIV3) error {
if ok {
l.Schema = sch
} else {
return fmt.Errorf("Unable to resolve %s in OpenAPI V3", refString)
return fmt.Errorf("unable to resolve %s in OpenAPI V3", refString)
}
}
return nil
Expand Down Expand Up @@ -225,7 +225,7 @@ func (s PatchMetaFromOpenAPIV3) LookupPatchMetadataForSlice(key string) (LookupP
if l.Schema.Items != nil {
l.Schema = l.Schema.Items.Schema
}
resolve(&l)
err = resolve(&l)
return l, p, err
}

Expand Down

0 comments on commit 5a8e3a4

Please sign in to comment.