open-nomad/jobspec2
Luiz Aoqui dbffdca92e
template: use pointer values for gid and uid (#14203)
When a Nomad agent starts and loads jobs that already existed in the
cluster, the default template uid and gid was being set to 0, since this
is the zero value for int. This caused these jobs to fail in
environments where it was not possible to use 0, such as in Windows
clients.

In order to differentiate between an explicit 0 and a template where
these properties were not set we need to use a pointer.
2022-08-22 16:25:49 -04:00
..
addrs
hclutil build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
test-fixtures Expose Consul template configuration parameters (#11606) 2022-01-10 10:19:07 -05:00
functions.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
hcl_conversions.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
helper_test.go template: use pointer values for gid and uid (#14203) 2022-08-22 16:25:49 -04:00
parse.go api: prevent excessice CPU load on job parse 2022-02-09 19:51:47 -05:00
parse_job.go template: use pointer values for gid and uid (#14203) 2022-08-22 16:25:49 -04:00
parse_map.go
parse_test.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
types.config.go hcl2: handle unquoted undefined variables (#10419) 2021-04-21 13:24:22 -04:00
types.variables.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00