Skip to content

Commit 6d53021

Browse files
authored
Merge pull request kubernetes#86511 from aojea/v6example
Add ipv6 examples for network policy API
2 parents bd239d4 + 31e59fd commit 6d53021

File tree

8 files changed

+34
-34
lines changed

8 files changed

+34
-34
lines changed

api/openapi-spec/swagger.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/networking/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ type NetworkPolicyPort struct {
144144
Port *intstr.IntOrString
145145
}
146146

147-
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
148-
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
149-
// not be included within this rule.
147+
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
148+
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
149+
// that should not be included within this rule.
150150
type IPBlock struct {
151151
// CIDR is a string representing the IP Block
152-
// Valid examples are "192.168.1.1/24"
152+
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
153153
CIDR string
154154
// Except is a slice of CIDRs that should not be included within an IP Block
155-
// Valid examples are "192.168.1.1/24"
155+
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
156156
// Except values will be rejected if they are outside the CIDR range
157157
// +optional
158158
Except []string

staging/src/k8s.io/api/extensions/v1beta1/generated.proto

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/extensions/v1beta1/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,15 +1334,15 @@ type NetworkPolicyPort struct {
13341334
}
13351335

13361336
// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
1337-
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
1338-
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
1339-
// not be included within this rule.
1337+
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
1338+
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
1339+
// that should not be included within this rule.
13401340
type IPBlock struct {
13411341
// CIDR is a string representing the IP Block
1342-
// Valid examples are "192.168.1.1/24"
1342+
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
13431343
CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"`
13441344
// Except is a slice of CIDRs that should not be included within an IP Block
1345-
// Valid examples are "192.168.1.1/24"
1345+
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
13461346
// Except values will be rejected if they are outside the CIDR range
13471347
// +optional
13481348
Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`

staging/src/k8s.io/api/extensions/v1beta1/types_swagger_doc_generated.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/networking/v1/generated.proto

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/networking/v1/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ type NetworkPolicyPort struct {
147147
Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"`
148148
}
149149

150-
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
151-
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
152-
// not be included within this rule.
150+
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
151+
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
152+
// that should not be included within this rule.
153153
type IPBlock struct {
154154
// CIDR is a string representing the IP Block
155-
// Valid examples are "192.168.1.1/24"
155+
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
156156
CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"`
157157
// Except is a slice of CIDRs that should not be included within an IP Block
158-
// Valid examples are "192.168.1.1/24"
158+
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
159159
// Except values will be rejected if they are outside the CIDR range
160160
// +optional
161161
Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`

staging/src/k8s.io/api/networking/v1/types_swagger_doc_generated.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)