Skip to content

Commit

Permalink
Log a deprecation message when the monolithic provider is run
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <[email protected]>
(cherry picked from commit f763919)
  • Loading branch information
sergenyalcin authored and github-actions[bot] committed Mar 21, 2024
1 parent 94484cb commit e090d1a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmd/provider/monolith/zz_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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(),
Expand Down
7 changes: 6 additions & 1 deletion hack/main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,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(),
Expand Down
7 changes: 7 additions & 0 deletions package/crossplane.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e090d1a

Please sign in to comment.