Skip to content

Commit

Permalink
Deprecate bgppeerv1beta1
Browse files Browse the repository at this point in the history
v1beta2 is around for a while now, deprecating v1beta1 would allow us to
(one day!) get rid of the conversion webhooks.

Signed-off-by: Federico Paolinelli <[email protected]>
  • Loading branch information
fedepaol committed Aug 29, 2024
1 parent cbb36c7 commit 8823067
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/bgppeer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type BGPPeerStatus struct {
//+kubebuilder:printcolumn:name="ASN",type=string,JSONPath=`.spec.peerASN`
//+kubebuilder:printcolumn:name="BFD Profile",type=string,JSONPath=`.spec.bfdProfile`
//+kubebuilder:printcolumn:name="Multi Hops",type=string,JSONPath=`.spec.ebgpMultiHop`
//+kubebuilder:deprecatedversion:warning="v1beta1 is deprecated, please use v1beta2"

// BGPPeer is the Schema for the peers API.
type BGPPeer struct {
Expand Down
2 changes: 2 additions & 0 deletions charts/metallb/charts/crds/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/metallb.io_bgppeers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
2 changes: 2 additions & 0 deletions config/manifests/metallb-frr-k8s-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
2 changes: 2 additions & 0 deletions config/manifests/metallb-frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
2 changes: 2 additions & 0 deletions config/manifests/metallb-frr-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
2 changes: 2 additions & 0 deletions config/manifests/metallb-frr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
2 changes: 2 additions & 0 deletions config/manifests/metallb-native-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
2 changes: 2 additions & 0 deletions config/manifests/metallb-native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ spec:
- jsonPath: .spec.ebgpMultiHop
name: Multi Hops
type: string
deprecated: true
deprecationWarning: v1beta1 is deprecated, please use v1beta2
name: v1beta1
schema:
openAPIV3Schema:
Expand Down
4 changes: 4 additions & 0 deletions website/content/configuration/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ or more external BGP routers.
In order to do so, an instance of `BGPPeer` must be created for each
router we want metallb to connect to.

{{% notice note %}}
The BGPPeer v1beta1 version is deprecated. Please consider using v1beta2.
{{% /notice %}}

For a basic configuration featuring one BGP router and one IP address
range, you need 4 pieces of information:

Expand Down

0 comments on commit 8823067

Please sign in to comment.