Skip to content

Commit

Permalink
Merge pull request #496 from crossplane-contrib/backport-493-to-relea…
Browse files Browse the repository at this point in the history
…se-0.41

[Backport release-0.41] Log a deprecation message when the monolithic provider is run
  • Loading branch information
sergenyalcin committed Mar 21, 2024
2 parents fff246e + 3dc603a commit 8135962
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cmd/provider/monolith/zz_main.go
Expand Up @@ -93,6 +93,11 @@ func main() {
ctrl.SetLogger(zl)
}

logr.Info("warning: The monolithic package is deprecated in favor of the GCP 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
Expand Up @@ -92,7 +92,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 GCP 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
9 changes: 8 additions & 1 deletion package/crossplane.yaml.tmpl
Expand Up @@ -8,11 +8,18 @@ metadata:
{{ end }}
annotations:
meta.crossplane.io/maintainer: Upbound <support@upbound.io>
meta.crossplane.io/source: github.com/upbound/provider-{{ .ProviderName }}
meta.crossplane.io/source: github.com/crossplane-contrib/provider-upjet-{{ .ProviderName }}
meta.crossplane.io/description: |
Upbound's official Crossplane provider to manage Google Cloud Platform (GCP)
{{ .Service }} services in Kubernetes.
meta.crossplane.io/readme: |
{{ if eq .Service "monolith" }}
⚠️ **Deprecation Notice:** The monolithic package is deprecated in favor of the GCP 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 GCP is a Crossplane provider for [Google Cloud Platform](https://cloud.google.com/) developed and supported by Upbound.
Available resources and their fields can be found in the [Upbound
Marketplace](https://marketplace.upbound.io/providers/upbound/provider-{{ .ProviderName }}).
Expand Down

0 comments on commit 8135962

Please sign in to comment.