diff --git a/components/odh-notebook-controller/controllers/notebook_network.go b/components/odh-notebook-controller/controllers/notebook_network.go index 2d6919a8ac1..83ec535a115 100644 --- a/components/odh-notebook-controller/controllers/notebook_network.go +++ b/components/odh-notebook-controller/controllers/notebook_network.go @@ -128,7 +128,7 @@ func CompareNotebookNetworkPolicies(np1 netv1.NetworkPolicy, np2 netv1.NetworkPo } // NewNotebookNetworkPolicy defines the desired network policy for Notebook port -func NewNotebookNetworkPolicy(notebook *nbv1.Notebook, log logr.Logger, namespace: string) *netv1.NetworkPolicy { +func NewNotebookNetworkPolicy(notebook *nbv1.Notebook, log logr.Logger, namespace string) *netv1.NetworkPolicy { npProtocol := corev1.ProtocolTCP if err != nil { log.Error(err, "Get controller / main namespace error, not creating NetworkPolicy resource that allows all ingress traffic to the oauth port of a notebook from main namespace")