Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-astorsky committed Aug 12, 2024
1 parent 48c8f9c commit 77f6377
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"address_resolver"={
"enable_ipv4"=%true;
"enable_ipv6"=%true;
"keep_socket"=%true;
"force_tcp"=%false;
retries=1000;
};
};
Expand Down
5 changes: 0 additions & 5 deletions pkg/ytconfig/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

corev1 "k8s.io/api/core/v1"
ptr "k8s.io/utils/pointer"
"sigs.k8s.io/controller-runtime/pkg/log"

"go.ytsaurus.tech/yt/go/yson"

Expand Down Expand Up @@ -143,11 +142,7 @@ func (g *Generator) fillDriver(c *Driver) {
}

func (g *BaseGenerator) fillAddressResolver(c *AddressResolver) {
logger := log.Log
var retries = 1000

logger.Info("fill ar")
fmt.Printf("%+v\n", g)
c.EnableIPv4 = g.commonSpec.UseIPv4
c.EnableIPv6 = g.commonSpec.UseIPv6
c.KeepSocket = g.commonSpec.KeepSocket
Expand Down
4 changes: 3 additions & 1 deletion pkg/ytconfig/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,9 @@ func getTCPProxySpec() ytv1.TCPProxiesSpec {

func getCommonSpec() ytv1.CommonSpec {
return ytv1.CommonSpec{
UseIPv6: true,
UseIPv6: true,
KeepSocket: true,
ForceTcp: false,
}
}

Expand Down

0 comments on commit 77f6377

Please sign in to comment.