-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k8s: defer extra pod labels conversion to labels.Selector (#4495)
Extra pod labels come in as one or more maps of label keys and values (`[]labels.Set`). Once converted into a list of `labels.Selector`, it can be used for matching, but introspecting it is more difficult, as it requires conversion, which produces a list of `labels.Requirement`. The biggest problem that introduces is that `labels.Requirement` is more expressive, so backwards conversion means a bunch of error-handling for (what should be) impossible cases. This just passes the `labels.Set`s as they're parsed from the `Tiltfile` through and stores them that way on the target in state. Once they're actually used, they get converted to the actual `labels.Selector`s for matching. This will simplify the new intermediary step where they'll get converted to API label selector objects, so that conversion can happen without hiccups or excessive boilerplate.
- Loading branch information
Showing
8 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters