Skip to content

Commit

Permalink
add modified warning with webhookEnabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
celenechang committed May 16, 2024
1 parent eb542e6 commit 1cf2d4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ func run(opts *options) error {
}
version.PrintVersionLogs(setupLog)

if opts.webhookEnabled {
setupLog.Error(nil, "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 {
setupLog.Info("Starting datadog profiler")
if err := profiler.Start(
Expand Down

0 comments on commit 1cf2d4c

Please sign in to comment.