Skip to content

Commit

Permalink
UDN: Allow access to kubernetes/default and dns-default/openshift-dns
Browse files Browse the repository at this point in the history
Signed-off-by: Patryk Diak <pdiak@redhat.com>
  • Loading branch information
kyrtapz committed Nov 4, 2024
1 parent 4e7def6 commit 5db6378
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bindata/network/ovn-kubernetes/managed/004-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data:
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation={{.EnableUDPAggregation}}
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="{{.OVN_service_cidr}}"
Expand Down Expand Up @@ -108,6 +109,7 @@ data:
encap-port="{{.GenevePort}}"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="{{.OVN_service_cidr}}"
Expand Down
1 change: 1 addition & 0 deletions bindata/network/ovn-kubernetes/self-hosted/004-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data:
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation={{.EnableUDPAggregation}}
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="{{.OVN_service_cidr}}"
Expand Down
18 changes: 16 additions & 2 deletions pkg/network/ovn_kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ import (
configv1 "github.com/openshift/api/config/v1"
apifeatures "github.com/openshift/api/features"
operv1 "github.com/openshift/api/operator/v1"
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
mcfgv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"

"github.com/openshift/cluster-network-operator/pkg/bootstrap"
cnofake "github.com/openshift/cluster-network-operator/pkg/client/fake"
"github.com/openshift/cluster-network-operator/pkg/hypershift"
"github.com/openshift/cluster-network-operator/pkg/names"
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
mcfgv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
)

var (
Expand Down Expand Up @@ -260,6 +261,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -301,6 +303,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -356,6 +359,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -414,6 +418,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -472,6 +477,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -529,6 +535,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -576,6 +583,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -625,6 +633,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=false
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -667,6 +676,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -709,6 +719,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -755,6 +766,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -798,6 +810,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down Expand Up @@ -842,6 +855,7 @@ encap-port="8061"
enable-lflow-cache=true
lflow-cache-limit-kb=1048576
enable-udp-aggregation=true
udn-allowed-default-services="default/kubernetes,openshift-dns/dns-default"
[kubernetes]
service-cidrs="172.30.0.0/16"
Expand Down

0 comments on commit 5db6378

Please sign in to comment.