mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Add ipv6 examples for network policy API
Add IPv6 examples to the network policy API
This commit is contained in:
parent
ff975e865d
commit
31e59fd5e3
6
api/openapi-spec/swagger.json
generated
6
api/openapi-spec/swagger.json
generated
@ -11497,14 +11497,14 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.networking.v1.IPBlock": {
|
"io.k8s.api.networking.v1.IPBlock": {
|
||||||
"description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.",
|
"description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"cidr": {
|
"cidr": {
|
||||||
"description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"",
|
"description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"except": {
|
"except": {
|
||||||
"description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range",
|
"description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
@ -144,15 +144,15 @@ type NetworkPolicyPort struct {
|
|||||||
Port *intstr.IntOrString
|
Port *intstr.IntOrString
|
||||||
}
|
}
|
||||||
|
|
||||||
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
|
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
|
||||||
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
|
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
|
||||||
// not be included within this rule.
|
// that should not be included within this rule.
|
||||||
type IPBlock struct {
|
type IPBlock struct {
|
||||||
// CIDR is a string representing the IP Block
|
// CIDR is a string representing the IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
CIDR string
|
CIDR string
|
||||||
// Except is a slice of CIDRs that should not be included within an IP Block
|
// Except is a slice of CIDRs that should not be included within an IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
// Except values will be rejected if they are outside the CIDR range
|
// Except values will be rejected if they are outside the CIDR range
|
||||||
// +optional
|
// +optional
|
||||||
Except []string
|
Except []string
|
||||||
|
@ -458,16 +458,16 @@ message IDRange {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
|
// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
|
||||||
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
|
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
|
||||||
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
|
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
|
||||||
// not be included within this rule.
|
// that should not be included within this rule.
|
||||||
message IPBlock {
|
message IPBlock {
|
||||||
// CIDR is a string representing the IP Block
|
// CIDR is a string representing the IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
optional string cidr = 1;
|
optional string cidr = 1;
|
||||||
|
|
||||||
// Except is a slice of CIDRs that should not be included within an IP Block
|
// Except is a slice of CIDRs that should not be included within an IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
// Except values will be rejected if they are outside the CIDR range
|
// Except values will be rejected if they are outside the CIDR range
|
||||||
// +optional
|
// +optional
|
||||||
repeated string except = 2;
|
repeated string except = 2;
|
||||||
|
@ -1334,15 +1334,15 @@ type NetworkPolicyPort struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
|
// DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
|
||||||
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
|
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
|
||||||
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
|
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
|
||||||
// not be included within this rule.
|
// that should not be included within this rule.
|
||||||
type IPBlock struct {
|
type IPBlock struct {
|
||||||
// CIDR is a string representing the IP Block
|
// CIDR is a string representing the IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"`
|
CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"`
|
||||||
// Except is a slice of CIDRs that should not be included within an IP Block
|
// Except is a slice of CIDRs that should not be included within an IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
// Except values will be rejected if they are outside the CIDR range
|
// Except values will be rejected if they are outside the CIDR range
|
||||||
// +optional
|
// +optional
|
||||||
Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`
|
Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`
|
||||||
|
@ -269,9 +269,9 @@ func (IDRange) SwaggerDoc() map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var map_IPBlock = map[string]string{
|
var map_IPBlock = map[string]string{
|
||||||
"": "DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.",
|
"": "DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.",
|
||||||
"cidr": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"",
|
"cidr": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"",
|
||||||
"except": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range",
|
"except": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (IPBlock) SwaggerDoc() map[string]string {
|
func (IPBlock) SwaggerDoc() map[string]string {
|
||||||
|
@ -30,16 +30,16 @@ import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
|
|||||||
// Package-wide variables from generator "generated".
|
// Package-wide variables from generator "generated".
|
||||||
option go_package = "v1";
|
option go_package = "v1";
|
||||||
|
|
||||||
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
|
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
|
||||||
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
|
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
|
||||||
// not be included within this rule.
|
// that should not be included within this rule.
|
||||||
message IPBlock {
|
message IPBlock {
|
||||||
// CIDR is a string representing the IP Block
|
// CIDR is a string representing the IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
optional string cidr = 1;
|
optional string cidr = 1;
|
||||||
|
|
||||||
// Except is a slice of CIDRs that should not be included within an IP Block
|
// Except is a slice of CIDRs that should not be included within an IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
// Except values will be rejected if they are outside the CIDR range
|
// Except values will be rejected if they are outside the CIDR range
|
||||||
// +optional
|
// +optional
|
||||||
repeated string except = 2;
|
repeated string except = 2;
|
||||||
|
@ -147,15 +147,15 @@ type NetworkPolicyPort struct {
|
|||||||
Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"`
|
Port *intstr.IntOrString `json:"port,omitempty" protobuf:"bytes,2,opt,name=port"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
|
// IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") that is allowed
|
||||||
// matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
|
// to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
|
||||||
// not be included within this rule.
|
// that should not be included within this rule.
|
||||||
type IPBlock struct {
|
type IPBlock struct {
|
||||||
// CIDR is a string representing the IP Block
|
// CIDR is a string representing the IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"`
|
CIDR string `json:"cidr" protobuf:"bytes,1,name=cidr"`
|
||||||
// Except is a slice of CIDRs that should not be included within an IP Block
|
// Except is a slice of CIDRs that should not be included within an IP Block
|
||||||
// Valid examples are "192.168.1.1/24"
|
// Valid examples are "192.168.1.1/24" or "2001:db9::/64"
|
||||||
// Except values will be rejected if they are outside the CIDR range
|
// Except values will be rejected if they are outside the CIDR range
|
||||||
// +optional
|
// +optional
|
||||||
Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`
|
Except []string `json:"except,omitempty" protobuf:"bytes,2,rep,name=except"`
|
||||||
|
@ -28,9 +28,9 @@ package v1
|
|||||||
|
|
||||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||||
var map_IPBlock = map[string]string{
|
var map_IPBlock = map[string]string{
|
||||||
"": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.",
|
"": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.",
|
||||||
"cidr": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"",
|
"cidr": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"",
|
||||||
"except": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range",
|
"except": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (IPBlock) SwaggerDoc() map[string]string {
|
func (IPBlock) SwaggerDoc() map[string]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user