Skip to content

Commit

Permalink
Fixed reference for feenv
Browse files Browse the repository at this point in the history
  • Loading branch information
psav committed Aug 31, 2022
1 parent b11b4b5 commit 4c9e186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/frontend_controller_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ var _ = Describe("Frontend controller with image", func() {
"fed-modules.json": "{\"testFrontend\":{\"manifestLocation\":\"/apps/inventory/fed-mods.json\",\"modules\":[{\"id\":\"test\",\"module\":\"./RootApp\",\"routes\":[{\"pathname\":\"/test/href\"}]}]}}",
"test-env.json": "{\"id\":\"test-bundle\",\"title\":\"\",\"navItems\":[{\"title\":\"Test\",\"href\":\"/test/href\"}]}",
}))
Expect(createdConfigMap.ObjectMeta.OwnerReferences[0].Name).Should(Equal(FrontendEnvName))
createdSSOConfigMap := &v1.ConfigMap{}
Eventually(func() bool {
err := k8sClient.Get(ctx, configSSOMapLookupKey, createdSSOConfigMap)
Expand Down
2 changes: 1 addition & 1 deletion controllers/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func createConfigConfigMap(ctx context.Context, pClient client.Client, frontend
}

labels := frontendEnvironment.GetLabels()
labler := utils.GetCustomLabeler(labels, nn, frontend)
labler := utils.GetCustomLabeler(labels, nn, frontendEnvironment)
labler(cfgMap)
cfgMap.SetOwnerReferences([]metav1.OwnerReference{frontendEnvironment.MakeOwnerReference()})

Expand Down

0 comments on commit 4c9e186

Please sign in to comment.