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
11 changes: 11 additions & 0 deletions integration/provider_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ func run() error {
if err := provider.ValidateExternalDriverConfig(cfg.Agent); err != nil {
return err
}
option := cfg.Options["MICROSANDBOX_WORKSPACE_STAT_VIRTUALIZATION"]
if option == nil {
return fmt.Errorf("missing workspace stat virtualization option")
}
values := make([]string, 0, len(option.Enum))
for _, choice := range option.Enum {
values = append(values, choice.Value)
}
if got := strings.Join(values, ","); got != "strict,relaxed,off" {
return fmt.Errorf("workspace stat virtualization values %q != strict,relaxed,off", got)
}
server := httptest.NewServer(http.FileServer(http.Dir(directory)))
defer server.Close()
for _, binary := range cfg.Agent.Binaries[cfg.Agent.External.Binary] {
Expand Down
2 changes: 1 addition & 1 deletion internal/distribution/provider.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ options:
displayName: "Require stat virtualization support."
- value: relaxed
displayName: "Use stat virtualization where supported."
- value: off
- value: "off"
displayName: "Expose literal host ownership and modes."
INACTIVITY_TIMEOUT:
description: "If defined, will automatically stop the microVM after the inactivity period. Examples: 10m, 1h"
Expand Down
Loading