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 65c81f1 commit 9339d68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ func NewNotebookNetworkPolicy(notebook *nbv1.Notebook, log logr.Logger) *netv1.N
npProtocol := corev1.ProtocolTCP
namespace, err := getControllerNamespace()
if err != nil {
log.Error("Get controller / main namespace error, not creating NetworkPolicy resource that allows all ingress traffic to the oauth port of a notebook from main namespace", "error", err)
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")
return nil
}
log.Info("Controller is running in namespace", "namespace", namespace)
namespaceSel := metav1.LabelSelector{
MatchLabels: map[string]string{
"kubernetes.io/metadata.name": getControllerNamespace(),
"kubernetes.io/metadata.name": namespace,
},
}
// Create a Kubernetes NetworkPolicy resource that allows all traffic to the oauth port of a notebook
Expand Down

0 comments on commit 9339d68

Please sign in to comment.