Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Dec 18, 2024
1 parent c222b20 commit 0e4fd7b
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pkg/chart/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,25 +91,3 @@ func (c Client) deleteHealthCheckPolicy(ctx context.Context, namespace string, c

return c.manager.DeleteHealthCheckPolicy(ctx, name, namespace)
}

func (c Client) alterJupyterDefaultFQDNNetpol(ctx context.Context, namespace string, enabled bool) error {
if c.dryRun {
return nil
}

if enabled {
err := c.manager.ApplyNetworkPolicy(ctx, networking.NewNetworkPolicyJupyterPyPi(k8sJupyterhubNetworPolicy, namespace))
if err != nil {
return fmt.Errorf("applying network policy: %w", err)
}

return nil
}

err := c.manager.DeleteNetworkPolicy(ctx, k8sJupyterhubNetworPolicy, namespace)
if err != nil {
return fmt.Errorf("deleting network policy: %w", err)
}

return nil
}

0 comments on commit 0e4fd7b

Please sign in to comment.