Update calico lib
fix struct definition error in v3 Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
This commit is contained in:
2
vendor/github.com/projectcalico/libcalico-go/lib/apis/v3/globalnetworkpolicy.go
generated
vendored
2
vendor/github.com/projectcalico/libcalico-go/lib/apis/v3/globalnetworkpolicy.go
generated
vendored
@@ -90,7 +90,7 @@ type GlobalNetworkPolicySpec struct {
|
||||
// type in {"frontend", "backend"}
|
||||
// deployment != "dev"
|
||||
// ! has(label_name)
|
||||
Selector string `json:"selector,omitempty" validate:"selector"`
|
||||
Selector string `json:"selector" validate:"selector"`
|
||||
// Types indicates whether this policy applies to ingress, or to egress, or to both. When
|
||||
// not explicitly specified (and so the value on creation is empty or nil), Calico defaults
|
||||
// Types according to what Ingress and Egress rules are present in the policy. The
|
||||
|
||||
2
vendor/github.com/projectcalico/libcalico-go/lib/apis/v3/ipam_block.go
generated
vendored
2
vendor/github.com/projectcalico/libcalico-go/lib/apis/v3/ipam_block.go
generated
vendored
@@ -43,7 +43,7 @@ type IPAMBlockSpec struct {
|
||||
Allocations []*int `json:"allocations"`
|
||||
Unallocated []int `json:"unallocated"`
|
||||
Attributes []AllocationAttribute `json:"attributes"`
|
||||
Deleted bool `json:"deleted`
|
||||
Deleted bool `json:"deleted"`
|
||||
}
|
||||
|
||||
type AllocationAttribute struct {
|
||||
|
||||
2
vendor/github.com/projectcalico/libcalico-go/lib/apis/v3/networkpolicy.go
generated
vendored
2
vendor/github.com/projectcalico/libcalico-go/lib/apis/v3/networkpolicy.go
generated
vendored
@@ -71,7 +71,7 @@ type NetworkPolicySpec struct {
|
||||
// type in {"frontend", "backend"}
|
||||
// deployment != "dev"
|
||||
// ! has(label_name)
|
||||
Selector string `json:"selector,omitempty" validate:"selector"`
|
||||
Selector string `json:"selector" validate:"selector"`
|
||||
// Types indicates whether this policy applies to ingress, or to egress, or to both. When
|
||||
// not explicitly specified (and so the value on creation is empty or nil), Calico defaults
|
||||
// Types according to what Ingress and Egress are present in the policy. The
|
||||
|
||||
Reference in New Issue
Block a user