Skip to content

Commit

Permalink
chore: change role template vars to lowercase
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Luz Almeida <[email protected]>
  • Loading branch information
leoluz committed Oct 31, 2024
1 parent faf67d1 commit acc5500
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions api/ephemeral-access/v1alpha1/roletemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ func (rt *RoleTemplate) Render(projName, appName, appNs string) (*RoleTemplate,

func (rt *RoleTemplate) execTemplate(tmpl *template.Template, projName, appName, appNs string) (string, error) {
type vars struct {
Role string
Project string
Application string
Namespace string
role string
project string
application string
namespace string
}
roleName := rt.AppProjectRoleName(appName, appNs)
v := vars{
Role: fmt.Sprintf("proj:%s:%s", projName, roleName),
Project: projName,
Application: appName,
Namespace: appNs,
role: fmt.Sprintf("proj:%s:%s", projName, roleName),
project: projName,
application: appName,
namespace: appNs,
}
var s strings.Builder
err := tmpl.Execute(&s, v)
Expand Down

0 comments on commit acc5500

Please sign in to comment.