fix: fixed an edge case with setting NodePort access in Hetzner Cloud

This commit is contained in:
Marco Palmisano 2023-08-10 16:17:28 +02:00 committed by GitHub
parent edac43faed
commit 6a7723176d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (b *ExternalAccessModelBuilder) Build(c *fi.CloudupModelBuilderContext) err
nodesFirewall.Rules = append(nodesFirewall.Rules, &hetznertasks.FirewallRule{
Direction: string(hcloud.FirewallRuleDirectionIn),
SourceIPs: nodePortAccess,
Protocol: string(hcloud.FirewallRuleProtocolTCP),
Protocol: string(hcloud.FirewallRuleProtocolUDP),
Port: fi.PtrTo(fmt.Sprintf("%d-%d", nodePortRange.Base, nodePortRange.Base+nodePortRange.Size-1)),
})
}