Skip to content

Commit

Permalink
Merge pull request #349 from eromanova/fix-dependency-name
Browse files Browse the repository at this point in the history
Fix dependency names for core components
  • Loading branch information
eromanova authored Sep 18, 2024
2 parents 7be8bb2 + a89f907 commit 3ba4085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/management_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ func wrappedComponents(mgmt *hmc.Management) (components []component) {

components = append(components, component{Component: mgmt.Spec.Core.HMC, helmReleaseName: hmc.CoreHMCName})
components = append(components, component{Component: mgmt.Spec.Core.CAPI, helmReleaseName: hmc.CoreCAPIName,
dependsOn: []meta.NamespacedObjectReference{{Name: mgmt.Spec.Core.HMC.Template}}})
dependsOn: []meta.NamespacedObjectReference{{Name: hmc.CoreHMCName}}})

for i := range mgmt.Spec.Providers {
c := component{Component: mgmt.Spec.Providers[i].Component, helmReleaseName: mgmt.Spec.Providers[i].Name,
dependsOn: []meta.NamespacedObjectReference{{Name: mgmt.Spec.Core.CAPI.Template}}}
dependsOn: []meta.NamespacedObjectReference{{Name: hmc.CoreCAPIName}}}

if mgmt.Spec.Providers[i].Template == hmc.ProviderSveltosName {
c.targetNamespace = hmc.ProviderSveltosTargetNamespace
Expand Down

0 comments on commit 3ba4085

Please sign in to comment.