Skip to content

Commit

Permalink
fix doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
mozesl-nokia committed Dec 9, 2024
1 parent 66fd1cd commit 3b5e1dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/kpt/fnruntime/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ func NewContainerEnvFromStringSlice(envStr []string) *runtimeutil.ContainerEnv {
return ce
}

// ResolveToImageForCLIFunc returns a func that converts the function short path to the full image url.
// `prefix` must end with a "/".
// If the function is Catalog function, it adds `prefix` .e.g. "set-namespace:v0.1" --> prefix + "set-namespace:v0.1"
// ResolveToImageForCLIFunc returns a func that converts the KRM function short path to the full image url.
// If the function is a catalog function, it prepends `prefix`, e.g. "set-namespace:v0.1" --> prefix + "set-namespace:v0.1".
// A "/" is appended to `prefix` if it is not an empty string and does not end with a "/".
func ResolveToImageForCLIFunc(prefix string) func(_ context.Context, image string) (string, error) {
prefix = strings.TrimSuffix(prefix, "/")
if prefix == "" {
Expand Down

0 comments on commit 3b5e1dd

Please sign in to comment.