Skip to content

Conversation

@johnwhumphreys
Copy link
Contributor

Summary: This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme. So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that. If it does not, it will try to fallback to a kubeconfig.

Differential Revision: D88568003

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 7, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 7, 2025

@johnwhumphreys has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88568003.

johnwhumphreys added a commit to johnwhumphreys/torchx that referenced this pull request Dec 8, 2025
…pport). (meta-pytorch#1172)

Summary:

This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme.  So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that.  If it does not, it will try to fallback to a kubeconfig.

Differential Revision: D88568003
@codecov-commenter
Copy link

codecov-commenter commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.72%. Comparing base (1de66c5) to head (45502c5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1172   +/-   ##
=======================================
  Coverage   91.71%   91.72%           
=======================================
  Files          86       86           
  Lines        6665     6668    +3     
=======================================
+ Hits         6113     6116    +3     
  Misses        552      552           
Flag Coverage Δ
unittests 91.72% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

johnwhumphreys added a commit to johnwhumphreys/torchx that referenced this pull request Dec 8, 2025
…pport). (meta-pytorch#1172)

Summary:

This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme.  So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that.  If it does not, it will try to fallback to a kubeconfig.

Differential Revision: D88568003
johnwhumphreys added a commit to johnwhumphreys/torchx that referenced this pull request Dec 8, 2025
…pport). (meta-pytorch#1172)

Summary:

This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme.  So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that.  If it does not, it will try to fallback to a kubeconfig.

Reviewed By: AbishekS

Differential Revision: D88568003
johnwhumphreys added a commit to johnwhumphreys/torchx that referenced this pull request Dec 8, 2025
…pport). (meta-pytorch#1172)

Summary:

This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme.  So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that.  If it does not, it will try to fallback to a kubeconfig.

Reviewed By: AbishekS

Differential Revision: D88568003
johnwhumphreys added a commit to johnwhumphreys/torchx that referenced this pull request Dec 9, 2025
…pport). (meta-pytorch#1172)

Summary:

This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme.  So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that.  If it does not, it will try to fallback to a kubeconfig.

Reviewed By: AbishekS

Differential Revision: D88568003
johnwhumphreys added a commit to johnwhumphreys/torchx that referenced this pull request Dec 9, 2025
…pport). (meta-pytorch#1172)

Summary:

This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme.  So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that.  If it does not, it will try to fallback to a kubeconfig.

Reviewed By: AbishekS

Differential Revision: D88568003
…pport). (meta-pytorch#1172)

Summary:

This diff adds cluster-auth as an option in the k8s scheduler by first checking if it works, and then falling back to the old auth scheme.  So, if we are in pod in a k8s cluster and the pod has a k8s service-account, it will use that.  If it does not, it will try to fallback to a kubeconfig.

Reviewed By: AbishekS

Differential Revision: D88568003
@meta-codesync meta-codesync bot merged commit 68c629e into meta-pytorch:main Dec 9, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants