From c9cc04d2b940e60400fba9f4b5caf84bb57b4340 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timoth=C3=A9e=20Bavelier?=
 <97530782+tbavelier@users.noreply.github.com>
Date: Thu, 12 Sep 2024 18:04:18 +0200
Subject: [PATCH] [Dashboard] Replace DashboardLastForceSyncTime with
 LastForceSyncTime (#1411)

* cherry pick 1410

* re-generate after review comment
---
 api/datadoghq/v1alpha1/datadogdashboard_types.go         | 4 ++--
 api/datadoghq/v1alpha1/zz_generated.openapi.go           | 4 ++--
 config/crd/bases/v1/datadoghq.com_datadogdashboards.yaml | 8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/api/datadoghq/v1alpha1/datadogdashboard_types.go b/api/datadoghq/v1alpha1/datadogdashboard_types.go
index 936aa1e44..17f9cc1d1 100644
--- a/api/datadoghq/v1alpha1/datadogdashboard_types.go
+++ b/api/datadoghq/v1alpha1/datadogdashboard_types.go
@@ -67,8 +67,8 @@ type DatadogDashboardStatus struct {
 	// CurrentHash tracks the hash of the current DatadogDashboardSpec to know
 	// if the Spec has changed and needs an update.
 	CurrentHash string `json:"currentHash,omitempty"`
-	// DashboardLastForceSyncTime is the last time the API dashboard was last force synced with the Datadogdashboard resource
-	LastForceSyncTime *metav1.Time `json:"dashboardLastForceSyncTime,omitempty"`
+	// LastForceSyncTime is the last time the API dashboard was last force synced with the DatadogDashboard resource
+	LastForceSyncTime *metav1.Time `json:"lastForceSyncTime,omitempty"`
 }
 
 type DatadogDashboardSyncStatus string
diff --git a/api/datadoghq/v1alpha1/zz_generated.openapi.go b/api/datadoghq/v1alpha1/zz_generated.openapi.go
index 3fdc5470c..3f255e321 100644
--- a/api/datadoghq/v1alpha1/zz_generated.openapi.go
+++ b/api/datadoghq/v1alpha1/zz_generated.openapi.go
@@ -559,9 +559,9 @@ func schema__api_datadoghq_v1alpha1_DatadogDashboardStatus(ref common.ReferenceC
 							Format:      "",
 						},
 					},
-					"dashboardLastForceSyncTime": {
+					"lastForceSyncTime": {
 						SchemaProps: spec.SchemaProps{
-							Description: "DashboardLastForceSyncTime is the last time the API dashboard was last force synced with the Datadogdashboard resource",
+							Description: "LastForceSyncTime is the last time the API dashboard was last force synced with the DatadogDashboard resource",
 							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
 						},
 					},
diff --git a/config/crd/bases/v1/datadoghq.com_datadogdashboards.yaml b/config/crd/bases/v1/datadoghq.com_datadogdashboards.yaml
index 2d4a8da10..608dccf89 100644
--- a/config/crd/bases/v1/datadoghq.com_datadogdashboards.yaml
+++ b/config/crd/bases/v1/datadoghq.com_datadogdashboards.yaml
@@ -243,13 +243,13 @@ spec:
                     CurrentHash tracks the hash of the current DatadogDashboardSpec to know
                     if the Spec has changed and needs an update.
                   type: string
-                dashboardLastForceSyncTime:
-                  description: DashboardLastForceSyncTime is the last time the API dashboard was last force synced with the Datadogdashboard resource
-                  format: date-time
-                  type: string
                 id:
                   description: ID is the dashboard ID generated in Datadog.
                   type: string
+                lastForceSyncTime:
+                  description: LastForceSyncTime is the last time the API dashboard was last force synced with the DatadogDashboard resource
+                  format: date-time
+                  type: string
                 syncStatus:
                   description: SyncStatus shows the health of syncing the dashboard state to Datadog.
                   type: string