From f046e4a62876693369e279d960ffbbb842bf833b Mon Sep 17 00:00:00 2001 From: khewonc <39867936+khewonc@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:04:48 -0400 Subject: [PATCH] [profiles] Update UpdateStrategy description (#1413) (#1418) * Clarify update strategy description * Fix autogenerated files --- api/datadoghq/v1alpha1/datadogagentprofile_types.go | 2 ++ config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/datadoghq/v1alpha1/datadogagentprofile_types.go b/api/datadoghq/v1alpha1/datadogagentprofile_types.go index ea8da4225..b370bdee0 100644 --- a/api/datadoghq/v1alpha1/datadogagentprofile_types.go +++ b/api/datadoghq/v1alpha1/datadogagentprofile_types.go @@ -35,6 +35,7 @@ type ProfileAffinity struct { } type Config struct { + // Override the default configurations of the node agent. Override map[ComponentName]*Override `json:"override,omitempty"` } @@ -54,6 +55,7 @@ type Override struct { PriorityClassName *string `json:"priorityClassName,omitempty"` // The deployment strategy to use to replace existing pods with new ones. + // Valid types are `RollingUpdate` or `OnDelete` for DaemonSets // +optional UpdateStrategy *commonv1.UpdateStrategy `json:"updateStrategy,omitempty"` diff --git a/config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml b/config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml index c88bfc3ee..a08c87e67 100644 --- a/config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml +++ b/config/crd/bases/v1/datadoghq.com_datadogagentprofiles.yaml @@ -245,7 +245,9 @@ spec: default. type: string updateStrategy: - description: The deployment strategy to use to replace existing pods with new ones. + description: |- + The deployment strategy to use to replace existing pods with new ones. + Valid types are `RollingUpdate` or `OnDelete` for DaemonSets properties: rollingUpdate: description: Configure the rolling update strategy of the Deployment or DaemonSet. @@ -275,6 +277,7 @@ spec: type: string type: object type: object + description: Override the default configurations of the node agent. type: object type: object profileAffinity: