Skip to content

Commit

Permalink
Link directly to OpenAPI schema. (#2436)
Browse files Browse the repository at this point in the history
* Link directly to OpenAPI schema.

* Update validation.go
  • Loading branch information
etefera committed Aug 10, 2021
1 parent 97ddbff commit 9f12361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/api/kptfile/v1/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ func IsKRM(n *yaml.RNode) error {
return nil
}

// isKustomization determines if given YAML is a kustomization file
// or a kustomization resource.
// isKustomization determines if given YAML is a kustomization file or resource.
func isKustomization(n *yaml.RNode) bool {
resourcePath, _, err := kioutil.GetFileAnnotations(n)
if err == nil {
Expand Down
4 changes: 2 additions & 2 deletions site/reference/schema/kptfile/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kptfile

See
[definition here](https://github.com/googlecontainertools/kpt/blob/next/pkg/api/kptfile/v1/types.go#L41)
Grab the OpenAPI
[schema here](https://kpt.dev/reference/schema/kptfile/kptfile.yaml)

0 comments on commit 9f12361

Please sign in to comment.