fixup! fixup! fixup! integration testing: add and validate build-time options for tailscale head

This commit is contained in:
Csaba Sarkadi 2024-11-19 19:04:17 +01:00
parent 2bba07d41c
commit 43098526d2

View file

@ -281,7 +281,7 @@ func New(
// build options are not meaningful with pre-existing images, // build options are not meaningful with pre-existing images,
// let's not lead anyone astray by pretending otherwise. // let's not lead anyone astray by pretending otherwise.
defaultBuildConfig := TailscaleInContainerBuildConfig{} defaultBuildConfig := TailscaleInContainerBuildConfig{}
hasBuildConfig := reflect.DeepEqual(defaultBuildConfig, tsic.buildConfig) hasBuildConfig := !reflect.DeepEqual(defaultBuildConfig, tsic.buildConfig)
if hasBuildConfig { if hasBuildConfig {
return tsic, errInvalidClientConfig return tsic, errInvalidClientConfig
} }