* first go at update implementation * template tests * SQL tests * more tests * set namespace for read resource permissions * fix a bug with perms being removed right after they're added * remove unwanted changes * fix tests and check error * PR feedback * Update pkg/registry/apis/iam/resourcepermission/sql.go --------- Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
12 lines
369 B
SQL
12 lines
369 B
SQL
INSERT INTO {{ .Ident .PermissionTable }} (role_id, action, scope, created, updated, kind, attribute, identifier)
|
|
VALUES (
|
|
{{ .Arg .RoleID }},
|
|
{{ .Arg .Permission.Action }},
|
|
{{ .Arg .Permission.Scope }},
|
|
{{ .Arg .Now }},
|
|
{{ .Arg .Now }},
|
|
{{ .Arg .Permission.Kind }},
|
|
{{ .Arg .Permission.Attribute }},
|
|
{{ .Arg .Permission.Identifier }}
|
|
)
|