DataDog / helm-charts

Helm charts for Datadog products
Apache License 2.0
337 stars 1.01k forks source link

Add DatadogAgent v1alpha1 deprecation warning #1332

Closed levan-m closed 6 months ago

levan-m commented 6 months ago

What this PR does / why we need it:

Add a warning for v1alpha1 deprecation when Operator 1.0 is used with webhook enabled.

❯ helm install datadog-operator ./charts/datadog-operator \
> --set datadogCRDs.migration.datadogAgents.conversionWebhook.enabled=true
NAME: datadog-operator
LAST DEPLOYED: Fri Feb 23 14:59:18 2024
NAMESPACE: system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
##############################################################################
####               WARNING: v1alpha1 and conversion webhook deprecation.  ####
##############################################################################

The `v1alpha1` reconciliation in the Operator 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 `datadogCRDs.migration.datadogAgents.conversionWebhook.enabled`).
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/

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]