Skip to content

Commit

Permalink
Fix #1799: fix catalog location
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Mar 3, 2021
1 parent 621f795 commit c11d9d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/trait/trait_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,15 +343,16 @@ func (e *Environment) GetIntegrationPodSpec() *corev1.PodSpec {

// DetermineCatalogNamespace --
func (e *Environment) DetermineCatalogNamespace() string {
// Catalog is expected to be together with the platform
if e.Platform != nil && e.Platform.Namespace != "" {
return e.Platform.Namespace
}
if e.Integration != nil && e.Integration.Status.IntegrationKit != nil && e.Integration.Status.IntegrationKit.Namespace != "" {
return e.Integration.Status.IntegrationKit.Namespace
}
if e.Integration != nil && e.Integration.Spec.IntegrationKit != nil && e.Integration.Spec.IntegrationKit.Namespace != "" {
return e.Integration.Spec.IntegrationKit.Namespace
}
if e.Platform != nil && e.Platform.Namespace != "" {
return e.Platform.Namespace
}
if e.IntegrationKit != nil && e.IntegrationKit.Namespace != "" {
return e.IntegrationKit.Namespace
}
Expand Down

0 comments on commit c11d9d5

Please sign in to comment.