Skip to content

Commit

Permalink
Update v1alpha1 deprecation log line (#1099)
Browse files Browse the repository at this point in the history
* Update v1alpha1 deprecation log line

* Update main.go

Co-authored-by: Celene <[email protected]>

* Update main.go

Co-authored-by: khewonc <[email protected]>

* Update main.go

Co-authored-by: Celene <[email protected]>

* Update main.go

Co-authored-by: khewonc <[email protected]>

* Update main.go

---------

Co-authored-by: Celene <[email protected]>
Co-authored-by: khewonc <[email protected]>
  • Loading branch information
3 people authored Feb 23, 2024
1 parent fa5dcb3 commit e9738fe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,11 @@ func run(opts *options) error {
version.PrintVersionLogs(setupLog)

if !opts.v2APIEnabled {
setupLog.Info("The 'v2APIEnabled' flag is deprecated in v1.2.0+ and will be removed in a future release. " +
"Once removed, the Datadog Operator cannot be configured to reconcile the v1alpha1 DatadogAgent CRD. " +
"However, you will still be able to apply a v1alpha1 manifest with the conversion webhook enabled (using the flag 'webhookEnabled').")
setupLog.Error(nil, "The 'v2APIEnabled' flag is deprecated since v1.2.0+ and will be removed in v1.7.0. "+
"Once removed, the Datadog Operator cannot be configured to reconcile the v1alpha1 DatadogAgent CRD. "+
"However, you will still be able to apply a v1alpha1 manifest with the conversion webhook enabled (using the flag 'webhookEnabled'). "+
"DatadogAgent v1alpha1 and the conversion webhook will be removed in v1.8.0. "+
"See the migration page for instructions on migrating to v2alpha1: https://docs.datadoghq.com/containers/guide/datadogoperator_migration/")
}

if opts.profilingEnabled {
Expand Down

0 comments on commit e9738fe

Please sign in to comment.