Skip to content

Commit d165220

Browse files
akuitybotfuskovic
andauthored
chore(backport release-1.9): fix: shared-expressions map access (#5662)
Signed-off-by: fuskovic <fhuskovic92@gmail.com> Co-authored-by: Faris Huskovic <fhuskovic92@gmail.com>
1 parent e65fe4b commit d165220

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/expressions/function/functions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ func SharedSecret(ctx context.Context, c client.Client, cache *gocache.Cache) ex
113113
return expr.Function(
114114
"sharedSecret",
115115
getSecret(ctx, c, cache, os.Getenv("SHARED_RESOURCES_NAMESPACE"), false),
116-
new(func(name string) *corev1.Secret),
116+
new(func(name string) map[string]string),
117117
)
118118
}
119119

120120
func SharedConfigMap(ctx context.Context, c client.Client, cache *gocache.Cache) expr.Option {
121121
return expr.Function(
122122
"sharedConfigMap",
123123
getConfigMap(ctx, c, cache, os.Getenv("SHARED_RESOURCES_NAMESPACE")),
124-
new(func(name string) *corev1.ConfigMap),
124+
new(func(name string) map[string]string),
125125
)
126126
}
127127

0 commit comments

Comments
 (0)