Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log a deprecation message when the monolithic provider is run #1230

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading