We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19f8004 commit 571beafCopy full SHA for 571beaf
1 file changed
pkg/lib/runneroptions/runneroptions.go
@@ -67,8 +67,8 @@ func (opts *RunnerOptions) InitDefaults(defaultImagePrefix string) {
67
// ResolveToImageForCLIFunc returns a func that converts the KRM function short path to the full image url.
68
// If the function is a catalog function, it prepends `prefix`, e.g. "set-namespace:v0.1" --> prefix + "set-namespace:v0.1".
69
// A "/" is appended to `prefix` if it is not an empty string and does not end with a "/".
70
-func ResolveToImageForCLIFunc(prefix string) func(image string) string {
71
- prefix = strings.TrimSuffix(prefix, "/")
+func ResolveToImageForCLIFunc(prefix string) ImageResolveFunc {
+ prefix = strings.TrimRight(prefix, "/")
72
if prefix == "" {
73
return func(image string) string {
74
return image
0 commit comments