Update kyaml to specify user for function

This commit is contained in:
Donny Xia
2020-08-18 12:48:41 -07:00
parent 8293f3002d
commit d03cf061e8
4 changed files with 41 additions and 2 deletions

View File

@@ -88,6 +88,26 @@ metadata:
},
},
},
{
name: "root user",
functionConfig: `apiVersion: apps/v1
kind: Deployment
metadata:
name: foo
`,
expectedArgs: []string{
"run",
"--rm",
"-i", "-a", "STDIN", "-a", "STDOUT", "-a", "STDERR",
"--network", "none",
"--user", "root",
"--security-opt=no-new-privileges",
},
instance: Filter{
Image: "example.com:version",
User: "root",
},
},
}
for i := range tests {