|
|
|
|
@ -353,13 +353,14 @@ func expectedSecret(t *testing.T, cl client.Client, opts configOpts) *corev1.Sec
|
|
|
|
|
mak.Set(&s.StringData, "serve-config", string(serveConfigBs))
|
|
|
|
|
}
|
|
|
|
|
conf := &ipn.ConfigVAlpha{
|
|
|
|
|
Version: "alpha0",
|
|
|
|
|
AcceptDNS: "false",
|
|
|
|
|
Hostname: &opts.hostname,
|
|
|
|
|
Locked: "false",
|
|
|
|
|
AuthKey: ptr.To("secret-authkey"),
|
|
|
|
|
AcceptRoutes: "false",
|
|
|
|
|
AppConnector: &ipn.AppConnectorPrefs{Advertise: false},
|
|
|
|
|
Version: "alpha0",
|
|
|
|
|
AcceptDNS: "false",
|
|
|
|
|
Hostname: &opts.hostname,
|
|
|
|
|
Locked: "false",
|
|
|
|
|
AuthKey: ptr.To("secret-authkey"),
|
|
|
|
|
AcceptRoutes: "false",
|
|
|
|
|
AppConnector: &ipn.AppConnectorPrefs{Advertise: false},
|
|
|
|
|
NoStatefulFiltering: "true",
|
|
|
|
|
}
|
|
|
|
|
if opts.proxyClass != "" {
|
|
|
|
|
t.Logf("applying configuration from ProxyClass %s", opts.proxyClass)
|
|
|
|
|
@ -391,11 +392,6 @@ func expectedSecret(t *testing.T, cl client.Client, opts configOpts) *corev1.Sec
|
|
|
|
|
routes = append(routes, prefix)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if opts.tailnetTargetFQDN != "" || opts.tailnetTargetIP != "" {
|
|
|
|
|
conf.NoStatefulFiltering = "true"
|
|
|
|
|
} else {
|
|
|
|
|
conf.NoStatefulFiltering = "false"
|
|
|
|
|
}
|
|
|
|
|
conf.AdvertiseRoutes = routes
|
|
|
|
|
bnn, err := json.Marshal(conf)
|
|
|
|
|
if err != nil {
|
|
|
|
|
|