Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
feat: update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
robodexo2000[bot] committed Aug 17, 2024
1 parent 9d652a0 commit 85880ca
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 139 deletions.
66 changes: 10 additions & 56 deletions cilium.io/ciliumbgpadvertisement_v2alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
"advertisements": {
"description": "Advertisements is a list of BGP advertisements.",
"items": {
"description": "BGPAdvertisement defines which routes Cilium should advertise to BGP peers. Optionally, additional attributes can be set to the advertised routes.",
"description": "Advertisement defines which routes Cilium should advertise to BGP peers. Optionally, additional attributes can be set to the advertised routes.",
"properties": {
"advertisementType": {
"description": "AdvertisementType defines type of advertisement which has to be advertised.",
"enum": [
"PodCIDR",
"CiliumPodIPPool",
"Service"
"CiliumLoadBalancerIP"
],
"type": "string"
},
"attributes": {
"description": "Attributes defines additional attributes to set to the advertised routes. If not specified, no additional attributes are set.",
"properties": {
"communities": {
"description": "Communities sets the community attributes in the route. If not specified, no community attribute is set.",
"community": {
"description": "Community sets the community attribute in the route. If not specified, no community attribute is set.",
"properties": {
"large": {
"description": "Large holds a list of the BGP Large Communities Attribute (RFC 8092) values.",
Expand All @@ -44,37 +44,13 @@
"type": "array"
},
"standard": {
"description": "Standard holds a list of \"standard\" 32-bit BGP Communities Attribute (RFC 1997) values defined as numeric values.",
"description": "Standard holds a list of \"standard\" 32-bit BGP Communities Attribute (RFC 1997) values.",
"items": {
"description": "BGPStandardCommunity type represents a value of the \"standard\" 32-bit BGP Communities Attribute (RFC 1997) as a 4-byte decimal number or two 2-byte decimal numbers separated by a colon (<0-65535>:<0-65535>). For example, no-export community value is 65553:65281.",
"description": "BGPStandardCommunity type represents a value of the \"standard\" 32-bit BGP Communities Attribute (RFC 1997) as a 4-byte decimal number or two 2-byte decimal numbers separated by a colon.",
"pattern": "^([0-9]|[1-9][0-9]{1,8}|[1-3][0-9]{9}|4[01][0-9]{8}|42[0-8][0-9]{7}|429[0-3][0-9]{6}|4294[0-8][0-9]{5}|42949[0-5][0-9]{4}|429496[0-6][0-9]{3}|4294967[01][0-9]{2}|42949672[0-8][0-9]|429496729[0-5])$|^([0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]):([0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$",
"type": "string"
},
"type": "array"
},
"wellKnown": {
"description": "WellKnown holds a list \"standard\" 32-bit BGP Communities Attribute (RFC 1997) values defined as well-known string aliases to their numeric values.",
"items": {
"description": "BGPWellKnownCommunity type represents a value of the \"standard\" 32-bit BGP Communities Attribute (RFC 1997) as a well-known string alias to its numeric value. Allowed values and their mapping to the numeric values: \n internet = 0x00000000 (0:0) planned-shut = 0xffff0000 (65535:0) accept-own = 0xffff0001 (65535:1) route-filter-translated-v4 = 0xffff0002 (65535:2) route-filter-v4 = 0xffff0003 (65535:3) route-filter-translated-v6 = 0xffff0004 (65535:4) route-filter-v6 = 0xffff0005 (65535:5) llgr-stale = 0xffff0006 (65535:6) no-llgr = 0xffff0007 (65535:7) blackhole = 0xffff029a (65535:666) no-export = 0xffffff01\t(65535:65281) no-advertise = 0xffffff02 (65535:65282) no-export-subconfed = 0xffffff03 (65535:65283) no-peer = 0xffffff04 (65535:65284)",
"enum": [
"internet",
"planned-shut",
"accept-own",
"route-filter-translated-v4",
"route-filter-v4",
"route-filter-translated-v6",
"route-filter-v6",
"llgr-stale",
"no-llgr",
"blackhole",
"no-export",
"no-advertise",
"no-export-subconfed",
"no-peer"
],
"type": "string"
},
"type": "array"
}
},
"type": "object",
Expand All @@ -90,7 +66,7 @@
"additionalProperties": false
},
"selector": {
"description": "Selector is a label selector to select objects of the type specified by AdvertisementType. If not specified, no objects of the type specified by AdvertisementType are selected for advertisement.",
"description": "Selector is a label selector to select objects of the type specified by AdvertisementType. If not specified, all objects of the type specified by AdvertisementType are selected for advertisement.",
"properties": {
"matchExpressions": {
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
Expand All @@ -116,8 +92,7 @@
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
"type": "array"
}
},
"required": [
Expand All @@ -127,8 +102,7 @@
"type": "object",
"additionalProperties": false
},
"type": "array",
"x-kubernetes-list-type": "atomic"
"type": "array"
},
"matchLabels": {
"additionalProperties": {
Expand All @@ -143,27 +117,6 @@
},
"type": "object",
"additionalProperties": false
},
"service": {
"description": "Service defines configuration options for advertisementType service.",
"properties": {
"addresses": {
"description": "Addresses is a list of service address types which needs to be advertised via BGP.",
"items": {
"description": "BGPServiceAddressType defines type of service address to be advertised. \n Note list of supported service addresses is not exhaustive and can be extended in the future. Consumer of this API should be able to handle unknown values.",
"enum": [
"LoadBalancerIP",
"ClusterIP",
"ExternalIP"
],
"type": "string"
},
"minItems": 1,
"type": "array"
}
},
"type": "object",
"additionalProperties": false
}
},
"required": [
Expand All @@ -172,6 +125,7 @@
"type": "object",
"additionalProperties": false
},
"minItems": 1,
"type": "array"
}
},
Expand Down
6 changes: 2 additions & 4 deletions cilium.io/ciliumbgpclusterconfig_v2alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
"type": "array"
}
},
"required": [
Expand All @@ -144,8 +143,7 @@
"type": "object",
"additionalProperties": false
},
"type": "array",
"x-kubernetes-list-type": "atomic"
"type": "array"
},
"matchLabels": {
"additionalProperties": {
Expand Down
6 changes: 5 additions & 1 deletion cilium.io/ciliumbgpnodeconfig_v2alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,17 @@
"x-kubernetes-list-type": "map"
}
},
"required": [
"bgpInstances"
],
"type": "object",
"additionalProperties": false
}
},
"required": [
"metadata",
"spec"
"spec",
"status"
],
"type": "object"
}
9 changes: 7 additions & 2 deletions cilium.io/ciliumbgpnodeconfigoverride_v2alpha1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "CiliumBGPNodeConfigOverride specifies configuration overrides for a CiliumBGPNodeConfig. It allows fine-tuning of BGP behavior on a per-node basis. For the override to be effective, the names in CiliumBGPNodeConfigOverride and CiliumBGPNodeConfig must match exactly. This matching ensures that specific node configurations are applied correctly and only where intended.",
"description": "CiliumBGPNodeConfigOverride is used to overrides some of the BGP configurations which are node local. Users can user this resource to override auto-generated BGP settings for the node.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
Expand Down Expand Up @@ -83,10 +83,15 @@
"name"
],
"x-kubernetes-list-type": "map"
},
"nodeRef": {
"description": "NodeRef is the name of the node for which the BGP configuration is overridden.",
"type": "string"
}
},
"required": [
"bgpInstances"
"bgpInstances",
"nodeRef"
],
"type": "object",
"additionalProperties": false
Expand Down
9 changes: 4 additions & 5 deletions cilium.io/ciliumbgppeerconfig_v2alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
"type": "array"
}
},
"required": [
Expand All @@ -69,8 +68,7 @@
"type": "object",
"additionalProperties": false
},
"type": "array",
"x-kubernetes-list-type": "atomic"
"type": "array"
},
"matchLabels": {
"additionalProperties": {
Expand Down Expand Up @@ -185,7 +183,8 @@
"description": "Transport defines the BGP transport parameters for the peer. \n If not specified, the default transport parameters are used.",
"properties": {
"localPort": {
"description": "Deprecated LocalPort is the local port to be used for the BGP session. \n If not specified, ephemeral port will be picked to initiate a connection. \n This field is deprecated and will be removed in a future release. Local port configuration is unnecessary and is not recommended.",
"default": 179,
"description": "LocalPort is the local port to be used for the BGP session. \n If not specified, defaults to TCP port 179.",
"format": "int32",
"maximum": 65535,
"minimum": 1,
Expand Down
Loading

0 comments on commit 85880ca

Please sign in to comment.