diff --git a/charts/sourcegraph-executor/k8s/README.md b/charts/sourcegraph-executor/k8s/README.md index 39072136..0f611b45 100644 --- a/charts/sourcegraph-executor/k8s/README.md +++ b/charts/sourcegraph-executor/k8s/README.md @@ -77,8 +77,8 @@ In addition to the documented values, the `executor` and `private-docker-registr | executor.kubernetesJob.resources.limits.memory | string | `"12Gi"` | The maximum memory for a job. | | executor.kubernetesJob.resources.requests.cpu | string | `""` | The requested CPU for a job. | | executor.kubernetesJob.resources.requests.memory | string | `"1Gi"` | The requested memory for a job. | -| executor.kubernetesJob.runAsGroup | int | `-1` | The group ID to run Kubernetes jobs as. | -| executor.kubernetesJob.runAsUser | int | `-1` | The user ID to run Kubernetes jobs as. | +| executor.kubernetesJob.runAsGroup | int | `nil`; accepts [0, 2147483647] | The group ID to run Kubernetes jobs as. | +| executor.kubernetesJob.runAsUser | int | `nil`; accepts [0, 2147483647] | The user ID to run Kubernetes jobs as. | | executor.log.format | string | `"condensed"` | | | executor.log.level | string | `"warn"` | Possible values are `dbug`, `info`, `warn`, `eror`, `crit`. | | executor.log.trace | string | `"false"` | | diff --git a/charts/sourcegraph-executor/k8s/values.yaml b/charts/sourcegraph-executor/k8s/values.yaml index 5f8305c9..525a736b 100644 --- a/charts/sourcegraph-executor/k8s/values.yaml +++ b/charts/sourcegraph-executor/k8s/values.yaml @@ -94,10 +94,12 @@ executor: kubernetesJob: # -- The number of seconds after which a Kubernetes job will be terminated. deadline: "1200" - # -- The user ID to run Kubernetes jobs as. - runAsUser: -1 - # -- The group ID to run Kubernetes jobs as. - runAsGroup: -1 + # -- (int) The user ID to run Kubernetes jobs as. + # @default -- `nil`; accepts [0, 2147483647] + runAsUser: + # -- (int) The group ID to run Kubernetes jobs as. + # @default -- `nil`; accepts [0, 2147483647] + runAsGroup: # -- The group ID which is set on the job PVC file system. fsGroup: "1000" resources: