Skip to content

Commit 07e8e78

Browse files
committed
Set Kind, not APIVersion
Setting APIVersion twice was unintentional. Signed-off-by: Nic Cope <[email protected]>
1 parent bf4eaa8 commit 07e8e78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/pkg/resolver/reconciler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ func NewPackage(dep *v1beta1.Dependency, version string, ref name.Reference) (*u
587587
switch {
588588
case dep.APIVersion != nil && dep.Kind != nil:
589589
pack.SetAPIVersion(*dep.APIVersion)
590-
pack.SetAPIVersion(*dep.Kind)
590+
pack.SetKind(*dep.Kind)
591591
case ptr.Deref(dep.Type, "") == v1beta1.ConfigurationPackageType:
592592
pack.SetAPIVersion("pkg.crossplane.io/v1")
593593
pack.SetKind("Configuration")
@@ -611,7 +611,7 @@ func NewPackageList(dep *v1beta1.Dependency) (*unstructured.UnstructuredList, er
611611
switch {
612612
case dep.APIVersion != nil && dep.Kind != nil:
613613
l.SetAPIVersion(*dep.APIVersion)
614-
l.SetAPIVersion(*dep.Kind + "List")
614+
l.SetKind(*dep.Kind + "List")
615615
case ptr.Deref(dep.Type, "") == v1beta1.ConfigurationPackageType:
616616
l.SetAPIVersion("pkg.crossplane.io/v1")
617617
l.SetKind("ConfigurationList")

0 commit comments

Comments
 (0)