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 a7f9f24 commit 16499a6
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ 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 {
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")
return nil
}
log.Info("Controller is running in namespace", "namespace", namespace)
namespaceSel := metav1.LabelSelector{
MatchLabels: map[string]string{
Expand Down

0 comments on commit 16499a6

Please sign in to comment.