Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controllers: register CmdImage on tiltfile load (#5318)
- Loading branch information
Showing
11 changed files
with
663 additions
and
508 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package cmdimage | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/tilt-dev/tilt/pkg/apis" | ||
"github.com/tilt-dev/tilt/pkg/model" | ||
) | ||
|
||
// Generate the name for the CmdImage API object from an ImageTarget and ManifestName. | ||
func GetName(mn model.ManifestName, id model.TargetID) string { | ||
return apis.SanitizeName(fmt.Sprintf("%s:%s", mn.String(), id.Name)) | ||
} |
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
Oops, something went wrong.