-
Notifications
You must be signed in to change notification settings - Fork 147
clean pod labels for any invalid characters #1157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@kiukchung has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85796595. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1157 +/- ##
=======================================
Coverage 91.61% 91.62%
=======================================
Files 84 84
Lines 6583 6589 +6
=======================================
+ Hits 6031 6037 +6
Misses 552 552
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary: Pull Request resolved: #1157 Reported on `torchx.__version__` since torchx follows PEP-440 standards for the version string, it could be that certain `torchx` builds (specifically those that are built from source) could have a "local label". For example: `0.8.0dev0+fb` would be a Meta "local build". Added logic to clean the pod label values to meet k8s specs specified in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ Specifically: ``` Valid label value: * must be 63 characters or less (can be empty), unless empty * must begin and end with an alphanumeric character ([a-z0-9A-Z]) * could contain dashes (-), underscores (_), dots (.), and alphanumerics between. ``` We first replace any invalid chars with a valid one (`"."`) and finally truncate each pod label value to a MAX length of 63. Reviewed By: ndacosta, AbishekS Differential Revision: D85796595
6e98b19 to
fdd738a
Compare
Summary: Pull Request resolved: #1157 Reported on `torchx.__version__` since torchx follows PEP-440 standards for the version string, it could be that certain `torchx` builds (specifically those that are built from source) could have a "local label". For example: `0.8.0dev0+fb` would be a Meta "local build". Added logic to clean the pod label values to meet k8s specs specified in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ Specifically: ``` Valid label value: * must be 63 characters or less (can be empty), unless empty * must begin and end with an alphanumeric character ([a-z0-9A-Z]) * could contain dashes (-), underscores (_), dots (.), and alphanumerics between. ``` We first replace any invalid chars with a valid one (`"."`) and finally truncate each pod label value to a MAX length of 63. Reviewed By: ndacosta, AbishekS Differential Revision: D85796595
Summary: Pull Request resolved: #1157 Reported on `torchx.__version__` since torchx follows PEP-440 standards for the version string, it could be that certain `torchx` builds (specifically those that are built from source) could have a "local label". For example: `0.8.0dev0+fb` would be a Meta "local build". Added logic to clean the pod label values to meet k8s specs specified in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ Specifically: ``` Valid label value: * must be 63 characters or less (can be empty), unless empty * must begin and end with an alphanumeric character ([a-z0-9A-Z]) * could contain dashes (-), underscores (_), dots (.), and alphanumerics between. ``` We first replace any invalid chars with a valid one (`"."`) and finally truncate each pod label value to a MAX length of 63. Reviewed By: ndacosta, AbishekS Differential Revision: D85796595
fdd738a to
a9419d1
Compare
Summary: Reported on `torchx.__version__` since torchx follows PEP-440 standards for the version string, it could be that certain `torchx` builds (specifically those that are built from source) could have a "local label". For example: `0.8.0dev0+fb` would be a Meta "local build". Added logic to clean the pod label values to meet k8s specs specified in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ Specifically: ``` Valid label value: * must be 63 characters or less (can be empty), unless empty * must begin and end with an alphanumeric character ([a-z0-9A-Z]) * could contain dashes (-), underscores (_), dots (.), and alphanumerics between. ``` We first replace any invalid chars with a valid one (`"."`) and finally truncate each pod label value to a MAX length of 63. Reviewed By: ndacosta, AbishekS Differential Revision: D85796595
a9419d1 to
af49af4
Compare
Summary:
Reported on
torchx.__version__since torchx follows PEP-440 standards for the version string, it could be that certaintorchxbuilds (specifically those that are built from source) could have a "local label".For example:
0.8.0dev0+fbwould be a Meta "local build".Added logic to clean the pod label values to meet k8s specs specified in https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Specifically:
We first replace any invalid chars with a valid one (
".") and finally truncate each pod label value to a MAX length of 63.Reviewed By: ndacosta, AbishekS
Differential Revision: D85796595