pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/DataDog/datadog-operator/commit/ca44d56f17dcae1e39057df7725f3410e6311dc6

/> [DatadogAgent] Copy annotations change to DDAI when DDAI enabled (#2667) · DataDog/datadog-operator@ca44d56 · GitHub
Skip to content

Commit ca44d56

Browse files
authored
[DatadogAgent] Copy annotations change to DDAI when DDAI enabled (#2667)
* [DatadogAgent] Allow reconciling on annotations change if `ddaReconcileOnAnnotationsChange` * Remove predicate on annotations, instead simply wait for next requeue (while making sure annotations were copied) * Do not filter out ddai specific annotations * But still compare all annotations to update them
1 parent 4f12d4e commit ca44d56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/controller/datadogagent/controller_reconcile_v2_common.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,9 @@ func (r *Reconciler) createOrUpdateDDAI(ddai *v1alpha1.DatadogAgentInternal) err
601601
return nil
602602
}
603603

604-
if currentDDAI.Annotations[constants.MD5DDAIDeploymentAnnotationKey] != ddai.Annotations[constants.MD5DDAIDeploymentAnnotationKey] {
604+
// By comparing annotations, we reconcile either instantly if the spec annotation changed or after the reconcile period
605+
// if only the annotations changed.
606+
if !maps.Equal(currentDDAI.Annotations, ddai.Annotations) {
605607
r.log.Info("updating DatadogAgentInternal", "ns", ddai.Namespace, "name", ddai.Name)
606608
if err := kubernetes.UpdateFromObject(context.TODO(), r.client, ddai, currentDDAI.ObjectMeta); err != nil {
607609
return err

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy