-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EVG-20943: Ensure virtual workstation is Linux architecture #7088
Conversation
validator/distro_validator.go
Outdated
|
||
if !utility.StringSliceContains(linuxDistros, d.Arch) { | ||
errs = append(errs, ValidationError{ | ||
Message: "spawnable distros must use Linux architecture", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this say workstation distros
? some windows distros are user spawnable on prod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM mod minor suggestions.
validator/distro_validator.go
Outdated
|
||
if !utility.StringSliceContains(linuxDistros, d.Arch) { | ||
errs = append(errs, ValidationError{ | ||
Message: "workstation distros must use Linux architecture", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: The phrasing is a little weird because Linux isn't an architecture. The arch enum represents a combination of OS + CPU architecture, so phrasing this as "workstation distros must use Linux with a supported CPU architecture" (or something like that) would sound less ambiguous.
validator/distro_validator.go
Outdated
@@ -547,6 +547,20 @@ func ensureHasValidVirtualWorkstationSettings(ctx context.Context, d *distro.Dis | |||
Level: Error, | |||
}) | |||
} | |||
linuxDistros := []string{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe allowedArchs
(arches...?) or linuxArchs
since distros aren't relevant here.
EVG-20943
Description
Testing
Documentation
N/A