From f7639190cc4fba4fc60868f666c3e143d48e9dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Thu, 21 Mar 2024 12:56:46 +0300 Subject: [PATCH] Log a deprecation message when the monolithic provider is run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- cmd/provider/monolith/zz_main.go | 5 +++++ hack/main.go.tmpl | 7 ++++++- package/crossplane.yaml.tmpl | 7 +++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/cmd/provider/monolith/zz_main.go b/cmd/provider/monolith/zz_main.go index 589a710334..379b92e6f6 100644 --- a/cmd/provider/monolith/zz_main.go +++ b/cmd/provider/monolith/zz_main.go @@ -98,6 +98,11 @@ func main() { ctrl.SetLogger(zl) } + logr.Info("warning: The monolithic package is deprecated in favor of the AWS family's resource packages " + + "and will no longer be maintained after 12 June 2024. Please consider switching to the family provider packages " + + "as we will no longer be publishing new versions of the monolithic package." + + "You can find more information about the provider families from the following link: https://docs.upbound.io/providers/provider-families/") + // currently, we configure the jitter to be the 5% of the poll interval pollJitter := time.Duration(float64(*pollInterval) * 0.05) logr.Debug("Starting", "sync-interval", syncInterval.String(), diff --git a/hack/main.go.tmpl b/hack/main.go.tmpl index 5767da8582..29dc60db6f 100644 --- a/hack/main.go.tmpl +++ b/hack/main.go.tmpl @@ -97,7 +97,12 @@ func main() { // logger when we're running in debug mode. ctrl.SetLogger(zl) } - +{{ if eq .Group "monolith" }} + logr.Info("warning: The monolithic package is deprecated in favor of the AWS family's resource packages " + + "and will no longer be maintained after 12 June 2024. Please consider switching to the family provider packages " + + "as we will no longer be publishing new versions of the monolithic package." + + "You can find more information about the provider families from the following link: https://docs.upbound.io/providers/provider-families/") +{{ end }} // currently, we configure the jitter to be the 5% of the poll interval pollJitter := time.Duration(float64(*pollInterval) * 0.05) logr.Debug("Starting", "sync-interval", syncInterval.String(), diff --git a/package/crossplane.yaml.tmpl b/package/crossplane.yaml.tmpl index b99891c119..97555e6f84 100644 --- a/package/crossplane.yaml.tmpl +++ b/package/crossplane.yaml.tmpl @@ -13,6 +13,13 @@ metadata: Upbound's official Crossplane provider to manage Amazon Web Services (AWS) {{ .Service }} services in Kubernetes. meta.crossplane.io/readme: | + {{ if eq .Service "monolith" }} + ⚠️ **Deprecation Notice:** The monolithic package is deprecated in favor of the AWS family's + resource packages and will no longer be maintained after 12 June 2024. Please consider + switching to the [family provider packages](https://docs.upbound.io/providers/provider-families/) + as we will no longer be publishing new versions of the monolithic package. + \ + {{ end }} Provider AWS is a Crossplane provider for [Amazon Web Services (AWS)](https://aws.amazon.com/) developed and supported by Upbound. Available resources and their fields can be found in the [Upbound