mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-03 01:39:43 +00:00
Kubernetes | Docker: Add support for rootless images (#4151)
This commit is contained in:
@@ -70,6 +70,7 @@ type config struct {
|
||||
}
|
||||
type SecurityContextConfig struct {
|
||||
RunAsNonRoot bool
|
||||
FSGroup *int64
|
||||
}
|
||||
|
||||
func newDefaultDeleteOptions() meta_v1.DeleteOptions {
|
||||
@@ -98,6 +99,7 @@ func configFromCliContext(ctx context.Context) (*config, error) {
|
||||
ImagePullSecretNames: c.StringSlice("backend-k8s-pod-image-pull-secret-names"),
|
||||
SecurityContext: SecurityContextConfig{
|
||||
RunAsNonRoot: c.Bool("backend-k8s-secctx-nonroot"), // cspell:words secctx nonroot
|
||||
FSGroup: newInt64(defaultFSGroup),
|
||||
},
|
||||
NativeSecretsAllowFromStep: c.Bool("backend-k8s-allow-native-secrets"),
|
||||
}
|
||||
|
Reference in New Issue
Block a user