Skip to content

Commit 2325fd6

Browse files
authored
test: Skip LocalDns validation when unsupported (#7378)
1 parent 59d772f commit 2325fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func ValidateCommonLinux(ctx context.Context, s *Scenario) {
131131
}
132132

133133
// localdns is not supported on scriptless, privatekube and VHDUbuntu2204Gen2ContainerdAirgappedK8sNotCached.
134-
if s.Tags.Scriptless != true && s.VHD != config.VHDUbuntu2204Gen2ContainerdPrivateKubePkg && s.VHD != config.VHDUbuntu2204Gen2ContainerdAirgappedK8sNotCached {
134+
if s.Tags.Scriptless != true && s.VHD != config.VHDUbuntu2204Gen2ContainerdPrivateKubePkg && s.VHD != config.VHDUbuntu2204Gen2ContainerdAirgappedK8sNotCached && !s.VHD.UnsupportedLocalDns {
135135
ValidateLocalDNSService(ctx, s, "enabled")
136136
ValidateLocalDNSResolution(ctx, s, "169.254.10.10")
137137
}

0 commit comments

Comments
 (0)