From b88e1d14d8296ff123c22dfa5189cbdf4bff3be3 Mon Sep 17 00:00:00 2001 From: Ales Raszka Date: Mon, 2 Mar 2026 14:34:49 +0100 Subject: [PATCH 1/2] Backup - Unify annotation with default value Signed-off-by: Ales Raszka --- apis/controller/v1alpha1/devworkspaceoperatorconfig_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/controller/v1alpha1/devworkspaceoperatorconfig_types.go b/apis/controller/v1alpha1/devworkspaceoperatorconfig_types.go index c0503c021..d93dad00d 100644 --- a/apis/controller/v1alpha1/devworkspaceoperatorconfig_types.go +++ b/apis/controller/v1alpha1/devworkspaceoperatorconfig_types.go @@ -108,7 +108,7 @@ type BackupCronJobConfig struct { OrasConfig *OrasConfig `json:"oras,omitempty"` // Schedule specifies the cron schedule for the backup cron job. // For example, "0 1 * * *" runs daily at 1 AM. - // +kubebuilder:default:="0 1 * * *" + // +kubebuilder:default:="0 0 1 * *" // +kubebuilder:validation:Optional Schedule string `json:"schedule,omitempty"` // BackoffLimit specifies the number of retries before marking a backup job as failed. From 316dd050c4d8a317417adcc794d3ddd320dfe9e6 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 2 Mar 2026 19:40:29 +0530 Subject: [PATCH 2/2] chore : regenerate CRDs after backup cronjob schedule's default value update Signed-off-by: Rohan Kumar --- .../controller.devfile.io_devworkspaceoperatorconfigs.yaml | 2 +- deploy/deployment/kubernetes/combined.yaml | 2 +- ...rconfigs.controller.devfile.io.CustomResourceDefinition.yaml | 2 +- deploy/deployment/openshift/combined.yaml | 2 +- ...rconfigs.controller.devfile.io.CustomResourceDefinition.yaml | 2 +- .../controller.devfile.io_devworkspaceoperatorconfigs.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/bundle/manifests/controller.devfile.io_devworkspaceoperatorconfigs.yaml b/deploy/bundle/manifests/controller.devfile.io_devworkspaceoperatorconfigs.yaml index 7f7dd6bee..cf9a12203 100644 --- a/deploy/bundle/manifests/controller.devfile.io_devworkspaceoperatorconfigs.yaml +++ b/deploy/bundle/manifests/controller.devfile.io_devworkspaceoperatorconfigs.yaml @@ -229,7 +229,7 @@ spec: - path type: object schedule: - default: 0 1 * * * + default: 0 0 1 * * description: |- Schedule specifies the cron schedule for the backup cron job. For example, "0 1 * * *" runs daily at 1 AM. diff --git a/deploy/deployment/kubernetes/combined.yaml b/deploy/deployment/kubernetes/combined.yaml index d6f5aac39..160f51e0a 100644 --- a/deploy/deployment/kubernetes/combined.yaml +++ b/deploy/deployment/kubernetes/combined.yaml @@ -233,7 +233,7 @@ spec: - path type: object schedule: - default: 0 1 * * * + default: 0 0 1 * * description: |- Schedule specifies the cron schedule for the backup cron job. For example, "0 1 * * *" runs daily at 1 AM. diff --git a/deploy/deployment/kubernetes/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml b/deploy/deployment/kubernetes/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml index 11d41b10e..dbefb0949 100644 --- a/deploy/deployment/kubernetes/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml +++ b/deploy/deployment/kubernetes/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml @@ -233,7 +233,7 @@ spec: - path type: object schedule: - default: 0 1 * * * + default: 0 0 1 * * description: |- Schedule specifies the cron schedule for the backup cron job. For example, "0 1 * * *" runs daily at 1 AM. diff --git a/deploy/deployment/openshift/combined.yaml b/deploy/deployment/openshift/combined.yaml index f114e5cea..fb41fbfd9 100644 --- a/deploy/deployment/openshift/combined.yaml +++ b/deploy/deployment/openshift/combined.yaml @@ -233,7 +233,7 @@ spec: - path type: object schedule: - default: 0 1 * * * + default: 0 0 1 * * description: |- Schedule specifies the cron schedule for the backup cron job. For example, "0 1 * * *" runs daily at 1 AM. diff --git a/deploy/deployment/openshift/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml b/deploy/deployment/openshift/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml index 11d41b10e..dbefb0949 100644 --- a/deploy/deployment/openshift/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml +++ b/deploy/deployment/openshift/objects/devworkspaceoperatorconfigs.controller.devfile.io.CustomResourceDefinition.yaml @@ -233,7 +233,7 @@ spec: - path type: object schedule: - default: 0 1 * * * + default: 0 0 1 * * description: |- Schedule specifies the cron schedule for the backup cron job. For example, "0 1 * * *" runs daily at 1 AM. diff --git a/deploy/templates/crd/bases/controller.devfile.io_devworkspaceoperatorconfigs.yaml b/deploy/templates/crd/bases/controller.devfile.io_devworkspaceoperatorconfigs.yaml index 2a7ea36e6..bff10a64d 100644 --- a/deploy/templates/crd/bases/controller.devfile.io_devworkspaceoperatorconfigs.yaml +++ b/deploy/templates/crd/bases/controller.devfile.io_devworkspaceoperatorconfigs.yaml @@ -231,7 +231,7 @@ spec: - path type: object schedule: - default: 0 1 * * * + default: 0 0 1 * * description: |- Schedule specifies the cron schedule for the backup cron job. For example, "0 1 * * *" runs daily at 1 AM.