Skip to content

Commit 9f12361

Browse files
authored
Link directly to OpenAPI schema. (#2436)
* Link directly to OpenAPI schema. * Update validation.go
1 parent 97ddbff commit 9f12361

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/api/kptfile/v1/validation.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ func IsKRM(n *yaml.RNode) error {
212212
return nil
213213
}
214214

215-
// isKustomization determines if given YAML is a kustomization file
216-
// or a kustomization resource.
215+
// isKustomization determines if given YAML is a kustomization file or resource.
217216
func isKustomization(n *yaml.RNode) bool {
218217
resourcePath, _, err := kioutil.GetFileAnnotations(n)
219218
if err == nil {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Kptfile
22

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

0 commit comments

Comments
 (0)