Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ type IrohConnectorConfig struct {

// TTLSeconds is the TTL written on each TXT record.
//
// +default=30
// Restarting a connector before the previous record's TTL expires
// leaves the gateway's resolver serving the stale answer, which
// gates how quickly a restart becomes reachable. 5s keeps that
// floor low while staying well within normal authoritative DNS
// query rates for the connector zone.
//
// +default=5
TTLSeconds int32 `json:"ttlSeconds,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestSetObjectDefaults_IrohConnectorConfig(t *testing.T) {
if got, want := iroh.RecordPrefix, "_iroh"; got != want {
t.Errorf("RecordPrefix = %q, want %q", got, want)
}
if got, want := iroh.TTLSeconds, int32(30); got != want {
if got, want := iroh.TTLSeconds, int32(5); got != want {
t.Errorf("TTLSeconds = %d, want %d", got, want)
}
if iroh.DownstreamKubeconfigPath != "" {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/zz_generated.defaults.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading