Skip to content

Commit 15c081c

Browse files
feat(schema): update skaffold/v4beta15 with LocalVerifier.runArgs
Signed-off-by: Bogdan Nazarenko <bogdan.nazarenko@outlook.com>
1 parent 8f509e0 commit 15c081c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

pkg/skaffold/schema/latest/config.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"github.com/GoogleContainerTools/skaffold/v2/pkg/skaffold/schema/util"
2626
)
2727

28-
// !!! WARNING !!! This config version is already released, please DO NOT MODIFY the structs in this file.
29-
const Version string = "skaffold/v4beta14"
28+
// This config version is not yet released, it is SAFE TO MODIFY the structs in this file.
29+
const Version string = "skaffold/v4beta15"
3030

3131
// NewSkaffoldConfig creates a SkaffoldConfig
3232
func NewSkaffoldConfig() util.VersionedConfig {
@@ -684,6 +684,13 @@ type LocalVerifier struct {
684684
// UseLocalImages if true, will first check if the containers images exist locally before triggering a pull.
685685
// Defaults to false.
686686
UseLocalImages bool `yaml:"useLocalImages,omitempty"`
687+
688+
// RunArgs is an optional list of `docker run`-style flags applied to the
689+
// verify test container. The same conservative whitelist is supported on
690+
// `customActions.*.executionMode.local.runArgs`: `--network`, `-v` /
691+
// `--volume`, `--add-host`, `--tmpfs`. Unknown flags are rejected, and each
692+
// flag must be in `--flag=value` form.
693+
RunArgs []string `yaml:"runArgs,omitempty"`
687694
}
688695

689696
// KubernetesClusterVerifier uses the `kubectl` CLI to create veriy test case

0 commit comments

Comments
 (0)