Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shalberd committed Aug 2, 2024
1 parent 480950b commit 65c81f1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ func SetContainerImageFromRegistry(ctx context.Context, config *rest.Config, not
// Specify the namespace to search in
// Currently and in foreseeable future, imagestream namespace is equal to central namespace that the odh notebook controller is running in
namespace, err := getControllerNamespace()
if err != nil {
log.Error("Get controller namespace error", "error", err)
return nil
}
log.Info("Controller is running in namespace", "namespace", namespace)
imagestreamFound := false
if err != nil {
log.Error(err, "Error during determining controller / main namespace")
return nil
}
log.Info("Controller is running in namespace", "namespace", namespace)
imagestreamFound := false
// List imagestreams in the specified namespace
imagestreams, err := dynamicClient.Resource(ims).Namespace(namespace).List(ctx, metav1.ListOptions{})
if err != nil {
Expand Down

0 comments on commit 65c81f1

Please sign in to comment.