You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-29 21:48:14 +02:00
K8s secrets reference from step (#3655)
This commit is contained in:
@@ -14,9 +14,7 @@
|
||||
|
||||
package kubernetes
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
import "github.com/urfave/cli/v2"
|
||||
|
||||
var Flags = []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
@@ -84,4 +82,10 @@ var Flags = []cli.Flag{
|
||||
Usage: "backend k8s pull secret names for private registries",
|
||||
Value: cli.NewStringSlice("regcred"),
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
EnvVars: []string{"WOODPECKER_BACKEND_K8S_ALLOW_NATIVE_SECRETS"},
|
||||
Name: "backend-k8s-allow-native-secrets",
|
||||
Usage: "whether to allow existing Kubernetes secrets to be referenced from steps",
|
||||
Value: false,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user