Skip to content

Commit

Permalink
Revert "feature/fix-platform-reference"
Browse files Browse the repository at this point in the history
This reverts commit 3e0ee6c.
  • Loading branch information
fraliv13 committed Jul 5, 2023
1 parent 3e0ee6c commit 1e7754f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/controllers/platform/platform_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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 @@ -476,7 +477,7 @@ func (c *PlatformController) genPlatformTenantsCfgMap(platform *platformv1.Platf
},
Namespace: platform.Spec.TargetNamespace,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(platform, platformv1.SchemeGroupVersion.WithKind("Platform")),
*metav1.NewControllerRef(platform, v1alpha1.SchemeGroupVersion.WithKind("Platform")),
},
},
Data: tenantData,
Expand Down Expand Up @@ -509,7 +510,7 @@ func (c *PlatformController) genDomainTenantsCfgMap(platform *platformv1.Platfor
},
Namespace: domain.Namespace,
OwnerReferences: []metav1.OwnerReference{
*metav1.NewControllerRef(platform, platformv1.SchemeGroupVersion.WithKind("Platform")),
*metav1.NewControllerRef(platform, v1alpha1.SchemeGroupVersion.WithKind("Platform")),
},
},
Data: tenantData,
Expand Down

0 comments on commit 1e7754f

Please sign in to comment.