-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1_network_policy_peer.go
23 lines (18 loc) · 1.04 KB
/
v1_network_policy_peer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// NetworkPolicyPeer describes a peer to allow traffic from. Exactly one of its fields must be specified.
type V1NetworkPolicyPeer struct {
// IPBlock defines policy on a particular IPBlock
IpBlock *V1IpBlock `json:"ipBlock,omitempty"`
// Selects Namespaces using cluster scoped-labels. This matches all pods in all namespaces selected by this label selector. This field follows standard label selector semantics. If present but empty, this selector selects all namespaces.
NamespaceSelector *V1LabelSelector `json:"namespaceSelector,omitempty"`
// This is a label selector which selects Pods in this namespace. This field follows standard label selector semantics. If present but empty, this selector selects all pods in this namespace.
PodSelector *V1LabelSelector `json:"podSelector,omitempty"`
}