Skip to content

Commit

Permalink
Fix platform reference (#60)
Browse files Browse the repository at this point in the history
* Fix platform reference

* Fix platform reference
  • Loading branch information
fraliv13 authored Jul 5, 2023
1 parent 1e7754f commit 97eccd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/controllers/platform/platform_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"k8s.io/klog/v2"
controllers "totalsoft.ro/platform-controllers/internal/controllers"
messaging "totalsoft.ro/platform-controllers/internal/messaging"
"totalsoft.ro/platform-controllers/pkg/apis/configuration/v1alpha1"
platformv1 "totalsoft.ro/platform-controllers/pkg/apis/platform/v1alpha1"
clientset "totalsoft.ro/platform-controllers/pkg/generated/clientset/versioned"
clientsetScheme "totalsoft.ro/platform-controllers/pkg/generated/clientset/versioned/scheme"
Expand Down Expand Up @@ -477,7 +476,7 @@ func (c *PlatformController) genPlatformTenantsCfgMap(platform *platformv1.Platf
},
Namespace: platform.Spec.TargetNamespace,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(platform, v1alpha1.SchemeGroupVersion.WithKind("Platform")),
*metav1.NewControllerRef(platform, platformv1.SchemeGroupVersion.WithKind("Platform")),
},
},
Data: tenantData,
Expand Down Expand Up @@ -510,7 +509,7 @@ func (c *PlatformController) genDomainTenantsCfgMap(platform *platformv1.Platfor
},
Namespace: domain.Namespace,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(platform, v1alpha1.SchemeGroupVersion.WithKind("Platform")),
*metav1.NewControllerRef(platform, platformv1.SchemeGroupVersion.WithKind("Platform")),
},
},
Data: tenantData,
Expand Down

0 comments on commit 97eccd2

Please sign in to comment.