diff --git a/api/v1beta1/bgppeer_types.go b/api/v1beta1/bgppeer_types.go index 4fe950e9af8..a5cc96d141a 100644 --- a/api/v1beta1/bgppeer_types.go +++ b/api/v1beta1/bgppeer_types.go @@ -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 { diff --git a/charts/metallb/charts/crds/templates/crds.yaml b/charts/metallb/charts/crds/templates/crds.yaml index 61f100ed425..97086a4c3c9 100644 --- a/charts/metallb/charts/crds/templates/crds.yaml +++ b/charts/metallb/charts/crds/templates/crds.yaml @@ -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: diff --git a/config/crd/bases/metallb.io_bgppeers.yaml b/config/crd/bases/metallb.io_bgppeers.yaml index 65607767740..fecd3e5e9e4 100644 --- a/config/crd/bases/metallb.io_bgppeers.yaml +++ b/config/crd/bases/metallb.io_bgppeers.yaml @@ -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: diff --git a/config/manifests/metallb-frr-k8s-prometheus.yaml b/config/manifests/metallb-frr-k8s-prometheus.yaml index 4b2aa591e85..b70daa26168 100644 --- a/config/manifests/metallb-frr-k8s-prometheus.yaml +++ b/config/manifests/metallb-frr-k8s-prometheus.yaml @@ -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: diff --git a/config/manifests/metallb-frr-k8s.yaml b/config/manifests/metallb-frr-k8s.yaml index ff25daae3b0..5c245c59fec 100644 --- a/config/manifests/metallb-frr-k8s.yaml +++ b/config/manifests/metallb-frr-k8s.yaml @@ -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: diff --git a/config/manifests/metallb-frr-prometheus.yaml b/config/manifests/metallb-frr-prometheus.yaml index 808020c9323..d6f35c5394f 100644 --- a/config/manifests/metallb-frr-prometheus.yaml +++ b/config/manifests/metallb-frr-prometheus.yaml @@ -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: diff --git a/config/manifests/metallb-frr.yaml b/config/manifests/metallb-frr.yaml index e3164a1bccc..8a685b9927c 100644 --- a/config/manifests/metallb-frr.yaml +++ b/config/manifests/metallb-frr.yaml @@ -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: diff --git a/config/manifests/metallb-native-prometheus.yaml b/config/manifests/metallb-native-prometheus.yaml index 435b132582a..220eed00464 100644 --- a/config/manifests/metallb-native-prometheus.yaml +++ b/config/manifests/metallb-native-prometheus.yaml @@ -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: diff --git a/config/manifests/metallb-native.yaml b/config/manifests/metallb-native.yaml index f30a32f1a16..999ff8ec402 100644 --- a/config/manifests/metallb-native.yaml +++ b/config/manifests/metallb-native.yaml @@ -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: diff --git a/website/content/configuration/_index.md b/website/content/configuration/_index.md index 131a932274a..6d6f22a8f0a 100644 --- a/website/content/configuration/_index.md +++ b/website/content/configuration/_index.md @@ -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: