1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-09 07:42:52 +03:00

Simple security context options (Kubernetes) (#2550)

This commit is contained in:
Thomas Anderson
2023-11-26 10:46:06 +03:00
committed by GitHub
parent ffb3bd806c
commit 3adb98b287
8 changed files with 298 additions and 72 deletions

View File

@@ -57,6 +57,11 @@ var Flags = []cli.Flag{
Usage: "backend k8s additional worker pod annotations",
Value: "",
},
&cli.BoolFlag{
EnvVars: []string{"WOODPECKER_BACKEND_K8S_SECCTX_NONROOT"},
Name: "backend-k8s-secctx-nonroot",
Usage: "`run as non root` Kubernetes security context option",
},
&cli.IntFlag{
EnvVars: []string{"WOODPECKER_CONNECT_RETRY_COUNT"},
Name: "connect-retry-count",