Skip to content

Commit

Permalink
fixup! fix: parameters in parameterizer templates were not being fill…
Browse files Browse the repository at this point in the history
…ed in with the correct values

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
  • Loading branch information
HarikrishnanBalagopal authored and seshapad committed Nov 15, 2022
1 parent 87e0088 commit 03aed92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions transformer/kubernetes/parameterizer/parameterizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,15 @@ func fillCustomTemplate(templ, kind, apiVersion, metadataName string, matches ma
return sV
}
switch s {
case "$(metadataName)":
case "metadataName":
return metadataName
case "$(kind)":
case "kind":
return kind
case "$(apiGroup)":
case "apiGroup":
return types.SchemeGroupVersion.Group
case "$(apiVersion)":
case "apiVersion":
return types.SchemeGroupVersion.Version
case "$(apiGroupVersion)":
case "apiGroupVersion":
return types.SchemeGroupVersion.String()
default:
errs = append(errs, fmt.Sprintf("failed to find the key $(%s) in the matches %+v", s, matches))
Expand Down

0 comments on commit 03aed92

Please sign in to comment.