Skip to content

Commit

Permalink
Merge pull request #1230 from sergenyalcin/deprecate-monolith
Browse files Browse the repository at this point in the history
Log a deprecation message when the monolithic provider is run
  • Loading branch information
sergenyalcin authored Mar 21, 2024
2 parents c04b0d2 + f763919 commit cacdcfc
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 @@ -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(),
Expand Down
7 changes: 6 additions & 1 deletion hack/main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
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 cacdcfc

Please sign in to comment.