Skip to content

Commit

Permalink
change group version of Kptfile to constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Liujingfang1 committed Dec 1, 2020
1 parent 86c7f52 commit 681f275
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/kptfile/pkgfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ import (
)

// KptFileName is the name of the KptFile
const KptFileName = "Kptfile"
const (
KptFileName = "Kptfile"
KptFileGroup = "kpt.dev"
KptFileVersion = "v1alpha1"
KptFileAPIVersion = KptFileGroup + "/" + KptFileVersion
)

// TypeMeta is the TypeMeta for KptFile instances.
var TypeMeta = yaml.ResourceMeta{
TypeMeta: yaml.TypeMeta{
APIVersion: "kpt.dev/v1alpha1",
APIVersion: KptFileAPIVersion,
Kind: KptFileName,
},
}
Expand Down

0 comments on commit 681f275

Please sign in to comment.