Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing new BGP CRDs to enable more flexible way to configure BGP in Cilium cluster. - CiliumBGPClusterConfig - CiliumBGPAdvertisement - CiliumBGPPeerConfig - CiliumBGPNodeConfig - CiliumBGPNodeOverrideConfig Pleasa refer to CFP https://isogo.to/bgpv2-crds for more details. Signed-off-by: harsimran pabla <hpabla@isovalent.com>
- Loading branch information
1 parent
379e2be
commit ce02445
Showing
48 changed files
with
5,924 additions
and
139 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
176 changes: 176 additions & 0 deletions
176
pkg/k8s/apis/cilium.io/client/crds/v2alpha1/ciliumbgpadvertisements.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.13.0 | ||
creationTimestamp: null | ||
name: ciliumbgpadvertisements.cilium.io | ||
spec: | ||
group: cilium.io | ||
names: | ||
categories: | ||
- cilium | ||
- ciliumbgp | ||
kind: CiliumBGPAdvertisement | ||
listKind: CiliumBGPAdvertisementList | ||
plural: ciliumbgpadvertisements | ||
shortNames: | ||
- cbgpadvert | ||
singular: ciliumbgpadvertisement | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
name: v2alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: CiliumBGPAdvertisement is the Schema for the ciliumbgpadvertisements | ||
API | ||
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' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
properties: | ||
advertisements: | ||
description: Advertisements is a list of BGP advertisements. | ||
items: | ||
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 | ||
- CiliumLoadBalancerIP | ||
type: string | ||
attributes: | ||
description: Attributes defines additional attributes to set | ||
to the advertised routes. If not specified, no additional | ||
attributes are set. | ||
properties: | ||
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. | ||
items: | ||
description: BGPLargeCommunity type represents a value | ||
of the BGP Large Communities Attribute (RFC 8092), | ||
as three 4-byte decimal numbers separated by colons. | ||
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,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,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])$ | ||
type: string | ||
type: array | ||
standard: | ||
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. | ||
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 | ||
type: object | ||
localPreference: | ||
description: LocalPreference sets the local preference attribute | ||
in the route. If not specified, no local preference attribute | ||
is set. | ||
format: int64 | ||
type: integer | ||
type: object | ||
selector: | ||
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. | ||
items: | ||
description: A label selector requirement is a selector | ||
that contains values, a key, and an operator that relates | ||
the key and values. | ||
properties: | ||
key: | ||
description: key is the label key that the selector | ||
applies to. | ||
type: string | ||
operator: | ||
description: operator represents a key's relationship | ||
to a set of values. Valid operators are In, NotIn, | ||
Exists and DoesNotExist. | ||
enum: | ||
- In | ||
- NotIn | ||
- Exists | ||
- DoesNotExist | ||
type: string | ||
values: | ||
description: values is an array of string values. | ||
If the operator is In or NotIn, the values array | ||
must be non-empty. If the operator is Exists or | ||
DoesNotExist, the values array must be empty. This | ||
array is replaced during a strategic merge patch. | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- key | ||
- operator | ||
type: object | ||
type: array | ||
matchLabels: | ||
additionalProperties: | ||
description: MatchLabelsValue represents the value from | ||
the MatchLabels {key,value} pair. | ||
maxLength: 63 | ||
pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$ | ||
type: string | ||
description: matchLabels is a map of {key,value} pairs. | ||
A single {key,value} in the matchLabels map is equivalent | ||
to an element of matchExpressions, whose key field is | ||
"key", the operator is "In", and the values array contains | ||
only "value". The requirements are ANDed. | ||
type: object | ||
type: object | ||
required: | ||
- advertisementType | ||
type: object | ||
minItems: 1 | ||
type: array | ||
required: | ||
- advertisements | ||
type: object | ||
required: | ||
- metadata | ||
- spec | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.