Skip to content

Commit 3d46b78

Browse files
authored
Merge pull request kubernetes#89018 from abhiraut/npTypes
Update code comment for NetworkPolicyPeer
2 parents 0fe5157 + 7cab575 commit 3d46b78

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

api/openapi-spec/swagger.json

Lines changed: 1 addition & 1 deletion
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ type IPBlock struct {
158158
Except []string
159159
}
160160

161-
// NetworkPolicyPeer describes a peer to allow traffic from.
161+
// NetworkPolicyPeer describes a peer to allow traffic to/from.
162162
type NetworkPolicyPeer struct {
163163
// This is a label selector which selects Pods. This field follows standard label
164164
// selector semantics; if present but empty, it selects all pods.

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

Lines changed: 1 addition & 1 deletion
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ type IPBlock struct {
161161
Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`
162162
}
163163

164-
// NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of
164+
// NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of
165165
// fields are allowed
166166
type NetworkPolicyPeer struct {
167167
// This is a label selector which selects Pods. This field follows standard label

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/cli-runtime/artifacts/openapi/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13744,7 +13744,7 @@
1374413744
]
1374513745
},
1374613746
"io.k8s.api.networking.v1.NetworkPolicyPeer": {
13747-
"description": "NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed",
13747+
"description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed",
1374813748
"properties": {
1374913749
"ipBlock": {
1375013750
"$ref": "#/definitions/io.k8s.api.networking.v1.IPBlock",

staging/src/k8s.io/kubectl/testdata/openapi/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13744,7 +13744,7 @@
1374413744
]
1374513745
},
1374613746
"io.k8s.api.networking.v1.NetworkPolicyPeer": {
13747-
"description": "NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed",
13747+
"description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed",
1374813748
"properties": {
1374913749
"ipBlock": {
1375013750
"$ref": "#/definitions/io.k8s.api.networking.v1.IPBlock",

0 commit comments

Comments
 (0)