Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scope field for toServices in Antrea-native policies #4397

Merged
merged 1 commit into from
Dec 20, 2022
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
2 changes: 2 additions & 0 deletions build/charts/antrea/crds/clusternetworkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
2 changes: 2 additions & 0 deletions build/charts/antrea/crds/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
4 changes: 4 additions & 0 deletions build/yamls/antrea-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down Expand Up @@ -2081,6 +2083,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
4 changes: 4 additions & 0 deletions build/yamls/antrea-crds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down Expand Up @@ -2062,6 +2064,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
4 changes: 4 additions & 0 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down Expand Up @@ -2081,6 +2083,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
4 changes: 4 additions & 0 deletions build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down Expand Up @@ -2081,6 +2083,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
4 changes: 4 additions & 0 deletions build/yamls/antrea-ipsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down Expand Up @@ -2081,6 +2083,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
4 changes: 4 additions & 0 deletions build/yamls/antrea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down Expand Up @@ -2081,6 +2083,8 @@ spec:
type: string
namespace:
type: string
scope:
type: string
name:
type: string
enableLogging:
Expand Down
80 changes: 52 additions & 28 deletions multicluster/build/yamls/antrea-multicluster-leader-global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1438,19 +1438,25 @@ spec:
type: array
toServices:
description: Rule is matched if traffic is intended for
a Service listed in this field. Currently only ClusterIP
types Services are supported in this field. This field
can only be used when AntreaProxy is enabled. This field
can't be used with To or Ports. If this field and To are
both empty or missing, this rule matches all destinations.
a Service listed in this field. Currently, only ClusterIP
types Services are supported in this field. When scope
is set to ClusterSet, it matches traffic intended for
a multi-cluster Service listed in this field. Service
name and Namespace provided should match the original
exported Service. This field can only be used when AntreaProxy
is enabled. This field can't be used with To or Ports.
If this field and To are both empty or missing, this rule
matches all destinations.
items:
description: NamespacedName refers to a Namespace scoped
resource. All fields must be used together.
description: PeerService refers to a Service, which can
be a in-cluster Service or imported multi-cluster service.
properties:
name:
type: string
namespace:
type: string
scope:
type: string
type: object
type: array
required:
Expand Down Expand Up @@ -2320,19 +2326,25 @@ spec:
type: array
toServices:
description: Rule is matched if traffic is intended for
a Service listed in this field. Currently only ClusterIP
types Services are supported in this field. This field
can only be used when AntreaProxy is enabled. This field
can't be used with To or Ports. If this field and To are
both empty or missing, this rule matches all destinations.
a Service listed in this field. Currently, only ClusterIP
types Services are supported in this field. When scope
is set to ClusterSet, it matches traffic intended for
a multi-cluster Service listed in this field. Service
name and Namespace provided should match the original
exported Service. This field can only be used when AntreaProxy
is enabled. This field can't be used with To or Ports.
If this field and To are both empty or missing, this rule
matches all destinations.
items:
description: NamespacedName refers to a Namespace scoped
resource. All fields must be used together.
description: PeerService refers to a Service, which can
be a in-cluster Service or imported multi-cluster service.
properties:
name:
type: string
namespace:
type: string
scope:
type: string
type: object
type: array
required:
Expand Down Expand Up @@ -4118,19 +4130,25 @@ spec:
type: array
toServices:
description: Rule is matched if traffic is intended for
a Service listed in this field. Currently only ClusterIP
types Services are supported in this field. This field
can only be used when AntreaProxy is enabled. This field
can't be used with To or Ports. If this field and To are
both empty or missing, this rule matches all destinations.
a Service listed in this field. Currently, only ClusterIP
types Services are supported in this field. When scope
is set to ClusterSet, it matches traffic intended for
a multi-cluster Service listed in this field. Service
name and Namespace provided should match the original
exported Service. This field can only be used when AntreaProxy
is enabled. This field can't be used with To or Ports.
If this field and To are both empty or missing, this rule
matches all destinations.
items:
description: NamespacedName refers to a Namespace scoped
resource. All fields must be used together.
description: PeerService refers to a Service, which can
be a in-cluster Service or imported multi-cluster service.
properties:
name:
type: string
namespace:
type: string
scope:
type: string
type: object
type: array
required:
Expand Down Expand Up @@ -5000,19 +5018,25 @@ spec:
type: array
toServices:
description: Rule is matched if traffic is intended for
a Service listed in this field. Currently only ClusterIP
types Services are supported in this field. This field
can only be used when AntreaProxy is enabled. This field
can't be used with To or Ports. If this field and To are
both empty or missing, this rule matches all destinations.
a Service listed in this field. Currently, only ClusterIP
types Services are supported in this field. When scope
is set to ClusterSet, it matches traffic intended for
a multi-cluster Service listed in this field. Service
name and Namespace provided should match the original
exported Service. This field can only be used when AntreaProxy
is enabled. This field can't be used with To or Ports.
If this field and To are both empty or missing, this rule
matches all destinations.
items:
description: NamespacedName refers to a Namespace scoped
resource. All fields must be used together.
description: PeerService refers to a Service, which can
be a in-cluster Service or imported multi-cluster service.
properties:
name:
type: string
namespace:
type: string
scope:
type: string
type: object
type: array
required:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1133,19 +1133,25 @@ spec:
type: array
toServices:
description: Rule is matched if traffic is intended for
a Service listed in this field. Currently only ClusterIP
types Services are supported in this field. This field
can only be used when AntreaProxy is enabled. This field
can't be used with To or Ports. If this field and To are
both empty or missing, this rule matches all destinations.
a Service listed in this field. Currently, only ClusterIP
types Services are supported in this field. When scope
is set to ClusterSet, it matches traffic intended for
a multi-cluster Service listed in this field. Service
name and Namespace provided should match the original
exported Service. This field can only be used when AntreaProxy
is enabled. This field can't be used with To or Ports.
If this field and To are both empty or missing, this rule
matches all destinations.
items:
description: NamespacedName refers to a Namespace scoped
resource. All fields must be used together.
description: PeerService refers to a Service, which can
be a in-cluster Service or imported multi-cluster service.
properties:
name:
type: string
namespace:
type: string
scope:
type: string
type: object
type: array
required:
Expand Down Expand Up @@ -2015,19 +2021,25 @@ spec:
type: array
toServices:
description: Rule is matched if traffic is intended for
a Service listed in this field. Currently only ClusterIP
types Services are supported in this field. This field
can only be used when AntreaProxy is enabled. This field
can't be used with To or Ports. If this field and To are
both empty or missing, this rule matches all destinations.
a Service listed in this field. Currently, only ClusterIP
types Services are supported in this field. When scope
is set to ClusterSet, it matches traffic intended for
a multi-cluster Service listed in this field. Service
name and Namespace provided should match the original
exported Service. This field can only be used when AntreaProxy
is enabled. This field can't be used with To or Ports.
If this field and To are both empty or missing, this rule
matches all destinations.
items:
description: NamespacedName refers to a Namespace scoped
resource. All fields must be used together.
description: PeerService refers to a Service, which can
be a in-cluster Service or imported multi-cluster service.
properties:
name:
type: string
namespace:
type: string
scope:
type: string
type: object
type: array
required:
Expand Down
Loading