You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/07/04 23:07:51 UTC

[PR] [SPARK-57934] Support opt-in `NetworkPolicy` for operator pod in Helm chart [spark-kubernetes-operator]

dongjoon-hyun opened a new pull request, #742:
URL: https://github.com/apache/spark-kubernetes-operator/pull/742

   ### What changes were proposed in this pull request?
   
   This PR aims to support an opt-in `NetworkPolicy` for the operator pod in the Helm chart.
   
   When `operatorDeployment.networkPolicy.enable` is `true` (default: `false`), all ingress to the
   operator pod is denied except the health probe port (open to any source, for kubelet probes) and
   the metrics port, which is reachable only from the peers listed in
   `operatorDeployment.networkPolicy.metricsIngress`.
   
   ```yaml
   operatorDeployment:
     networkPolicy:
       enable: true
       metricsIngress:
         - namespaceSelector:
             matchLabels:
               kubernetes.io/metadata.name: "monitoring"
   ```
   
   ### Why are the changes needed?
   
   The operator serves unauthenticated plain-HTTP probe and metrics endpoints, and the chart
   provided no way to restrict in-cluster access to them.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, because this is disabled by default.
   
   ### How was this patch tested?
   
   Pass the CIs.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Fable 5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-57934] Support opt-in `NetworkPolicy` for operator pod in Helm chart [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #742:
URL: https://github.com/apache/spark-kubernetes-operator/pull/742#issuecomment-4897325529

   Thank you, Peter!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-57934] Support opt-in `NetworkPolicy` for operator pod in Helm chart [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #742:
URL: https://github.com/apache/spark-kubernetes-operator/pull/742#issuecomment-4887285746

   For this security feature, I'm going to merge to move forward to unblock other security considerations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-57934] Support opt-in `NetworkPolicy` for operator pod in Helm chart [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #742: [SPARK-57934] Support opt-in `NetworkPolicy` for operator pod in Helm chart
URL: https://github.com/apache/spark-kubernetes-operator/pull/742


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-57934] Support opt-in `NetworkPolicy` for operator pod in Helm chart [spark-kubernetes-operator]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #742:
URL: https://github.com/apache/spark-kubernetes-operator/pull/742#issuecomment-4887287742

   Merged to main


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org