Skip to content

Commit

Permalink
remove two step watch for console config
Browse files Browse the repository at this point in the history
  • Loading branch information
vareti committed Jul 7, 2020
1 parent 8bb2e80 commit 072c2b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func convertTemplatesWithBranding(cmLister corelistersv1.ConfigMapLister, config
}

func getConsoleBranding(cmLister corelistersv1.ConfigMapLister) (string, error) {
cm, err := cmLister.ConfigMaps("openshift-authentication").Get("v4-0-config-system-console-config")
cm, err := cmLister.ConfigMaps("openshift-config-managed").Get("wat")
if errors.IsNotFound(err) {
return "", nil
}
Expand Down
8 changes: 0 additions & 8 deletions pkg/operator2/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ func RunOperator(ctx context.Context, controllerContext *controllercmd.Controlle
return err
}

// add syncing for the console-config ConfigMap (indirect watch for changes)
if err := resourceSyncer.SyncConfigMap(
resourcesynccontroller.ResourceLocation{Namespace: "openshift-authentication", Name: "v4-0-config-system-console-config"},
resourcesynccontroller.ResourceLocation{Namespace: "openshift-config-managed", Name: "console-config"},
); err != nil {
return err
}

versionGetter := status.NewVersionGetter()

operator := NewAuthenticationOperator(
Expand Down

0 comments on commit 072c2b4

Please sign in to comment.