Skip to content

Commit eb20dfd

Browse files
committed
renaming and add yaml tags
Signed-off-by: Eric Stroczynski <[email protected]>
1 parent ed76771 commit eb20dfd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkg/constraints/constraint.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@ type Constraint struct {
3838
// CompoundConstraint holds a list of potentially nested constraints
3939
// over which a boolean operation is applied.
4040
type CompoundConstraint struct {
41-
Constraints []Constraint `json:"constraints"`
41+
Constraints []Constraint `json:"constraints" yaml:"constraints"`
4242
}
4343

4444
// GVKConstraint defines a GVK constraint.
4545
type GVKConstraint struct {
46-
Group string `json:"group"`
47-
Kind string `json:"kind"`
48-
Version string `json:"version"`
46+
Group string `json:"group" yaml:"group"`
47+
Kind string `json:"kind" yaml:"kind"`
48+
Version string `json:"version" yaml:"version"`
4949
}
5050

5151
// PackageConstraint defines a package constraint.
5252
type PackageConstraint struct {
53-
// Name of the package.
54-
Name string `json:"name"`
53+
// PackageName is the name of the package.
54+
PackageName string `json:"packageName" yaml:"packageName"`
5555
// VersionRange required for the package.
56-
VersionRange string `json:"versionRange"`
56+
VersionRange string `json:"versionRange" yaml:"versionRange"`
5757
}
5858

5959
// maxConstraintSize defines the maximum raw size in bytes of an olm.constraint.

0 commit comments

Comments
 (0)