We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b081a42 + 8543fe4 commit f2ae88bCopy full SHA for f2ae88b
1 file changed
validate/validate.go
@@ -385,6 +385,7 @@ func (v *Validator) CheckMounts() (msgs []string) {
385
return
386
}
387
388
+// CheckOS checks v.spec.Platform.OS
389
func (v *Validator) CheckOS() (msgs []string) {
390
logrus.Debugf("check os")
391
@@ -400,6 +401,12 @@ func (v *Validator) CheckOS() (msgs []string) {
400
401
402
403
404
+ if v.spec.Platform.OS != "windows" {
405
+ if v.spec.Windows != nil {
406
+ msgs = append(msgs, fmt.Sprintf("'windows' MUST NOT be set when platform.os is %q", v.spec.Platform.OS))
407
+ }
408
409
+
410
411
412
0 commit comments