Skip to content

Commit

Permalink
fix: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
uanid committed Aug 28, 2023
1 parent 74bd547 commit da47960
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generator/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import (
"google.golang.org/protobuf/reflect/protoreflect"
)

// HierarchicalContext is a context for hierarchical and inheritable fields.
// It is used to determine whether a field should be exposed or not and to build a hierarchical property name.
// Or you can add additional inheritable properties.
type HierarchicalContext struct {
exposes []bool
properties []string
Expand Down
3 changes: 3 additions & 0 deletions generator/generator_well_known.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ func ToWellKnownKind(fd protoreflect.FieldDescriptor) *WellKnownKind {
return &TimestampKind
case "google.protobuf.Duration":
case "k8s.io.apimachinery.pkg.apis.util.v1.IntOrString":
// oneof int or string?
// input with int or string validation?
// k8s에서 int or string이 어떤 용례로 쓰이는지 찾아봐야 할듯
case "k8s.io.api.pkg.core.v1.Volume":
}
}
Expand Down

0 comments on commit da47960

Please sign in to comment.