Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/component-definition' in…
Browse files Browse the repository at this point in the history
…to feature/component-definition
  • Loading branch information
leon-inf committed Oct 23, 2023
2 parents ec35050 + 644d0bd commit 1a2cb10
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions apis/apps/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/dataprotection/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/extensions/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/storage/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/workloads/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion externalapis/preflight/v1beta2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/controller/component/convertor.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ func covertObject(convertors map[string]convertor, obj any, args ...any) error {
func typeofObject(obj any) reflect.Type {
val := reflect.ValueOf(obj)
if val.Kind() == reflect.Ptr {
val = val.Elem()
return reflect.TypeOf(obj).Elem()
}
if val.Kind() != reflect.Struct {
panic("not a struct")
}
return reflect.TypeOf(val)
return reflect.TypeOf(obj)
}

type convertor interface {
Expand Down

0 comments on commit 1a2cb10

Please sign in to comment.