Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runsc/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1491,9 +1491,9 @@ func (p SidecarUsagePolicy) String() string {
// if the on-disk sidecar binaries are not found.
func (p SidecarUsagePolicy) AllowEmbeddedFallback() bool {
switch p {
case SidecarUsageDefault, SidecarUsageStrict:
case SidecarUsageStrict:
return false
case SidecarUsageLegacyEmbedded:
case SidecarUsageDefault, SidecarUsageLegacyEmbedded:
return true
default:
panic(fmt.Sprintf("invalid sidecar usage policy: %q", p))
Expand Down
2 changes: 1 addition & 1 deletion runsc/config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func RegisterFlags(flagSet *flag.FlagSet) {
flagSet.String("pod-init-config", "", "path to configuration file with additional steps to take during pod creation.")
flagSet.Var(HostSettingsCheck.Ptr(), "host-settings", "how to handle non-optimal host kernel settings: check (default, advisory-only), ignore (do not check), adjust (best-effort auto-adjustment), or enforce (auto-adjustment must succeed).")
flagSet.Var(SidecarReleaseIfReleaseBuild.Ptr(), "sidecar-release-enforcement-policy", "when spawned sidecar binaries must match runsc's release: NEVER, ALWAYS, or IF_RELEASE_BUILD. May be overridden by setting GVISOR_ENFORCE_RELEASE=SKIP as env var.")
flagSet.Var(SidecarUsageDefault.Ptr(), "sidecar-usage-policy", "policy for sidecar binaries: STRICT (sidecars must exist), LEGACY_DEPRECATED_SLOW_EMBEDDED_FALLBACK (use embedded fallbacks if sidecars are missing; will stop working after 2026-10).")
flagSet.Var(SidecarUsageDefault.Ptr(), "sidecar-usage-policy", "policy for sidecar binaries: STRICT (sidecars must exist), LEGACY_DEPRECATED_SLOW_EMBEDDED_FALLBACK (use embedded fallbacks if sidecars are missing; will stop working after 2026-10). The DEFAULT policy will change to STRICT after 2026-09.")
flagSet.Var(RestoreSpecValidationEnforce.Ptr(), "restore-spec-validation", "how to handle spec validation during restore.")
flagSet.Bool("systrap-disable-syscall-patching", false, "disables syscall patching when using the Systrap platform. May be necessary to use in case the workload uses the GS register, or uses ptrace within gVisor. Has significant performance implications and is only recommended when the sandbox is known to run otherwise-incompatible workloads. Only relevant for x86.")
flagSet.Bool("systrap-disable-fast-path", false, "unconditionally disables the Systrap fast path.")
Expand Down
3 changes: 2 additions & 1 deletion test/compatibility/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def compatibility_test(name, srcs, deps = [], data = [], tags = [], size = "larg
for suffix, runtime in _RUNTIMES:
target_data = list(data)
if runtime != "runc":
target_data = target_data + ["//:release"]
# runsc is needed to invalidate the bazel cache on any code change.
target_data = target_data + ["//runsc"]
go_test(
name = name + "_" + suffix,
srcs = srcs,
Expand Down
Loading