From 6f8a78a849c44f470bc6323c62521cda790fd68d Mon Sep 17 00:00:00 2001 From: scme0 Date: Fri, 3 Oct 2025 15:31:08 +0200 Subject: [PATCH 1/3] update crd for warnings and failure props --- .../gitops-operator/crds/promotiontasks.yaml | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml index c0f31bd0..dec43194 100644 --- a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml +++ b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml @@ -381,6 +381,25 @@ spec: createdAt: format: date-time type: string + failure: + properties: + code: + type: string + context: + type: string + message: + type: string + stepIndex: + type: integer + transient: + type: boolean + required: + - code + - context + - message + - stepIndex + - transient + type: object observedGeneration: format: int64 type: integer @@ -399,8 +418,6 @@ spec: items: description: StepStatus properties: - failureSummary: - type: string getPromotionValues: properties: commitAuthorAvatarUrl: @@ -633,6 +650,27 @@ spec: updatedAt: format: date-time type: string + warnings: + items: + properties: + code: + type: string + context: + type: string + message: + type: string + stepIndex: + type: integer + transient: + type: boolean + required: + - code + - context + - message + - stepIndex + - transient + type: object + type: array required: - createdAt - phase From 7cc91c8b980ebdc87a4e79e6963709942abe4740 Mon Sep 17 00:00:00 2001 From: scme0 Date: Fri, 3 Oct 2025 17:52:53 +0200 Subject: [PATCH 2/3] update promotion task crd --- .../gitops-operator/crds/promotiontasks.yaml | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml index dec43194..b6ec93c9 100644 --- a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml +++ b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml @@ -391,14 +391,11 @@ spec: type: string stepIndex: type: integer - transient: - type: boolean required: - code - context - message - stepIndex - - transient type: object observedGeneration: format: int64 @@ -653,22 +650,27 @@ spec: warnings: items: properties: - code: - type: string - context: - type: string - message: - type: string - stepIndex: + count: type: integer - transient: - type: boolean + error: + properties: + code: + type: string + context: + type: string + message: + type: string + stepIndex: + type: integer + required: + - code + - context + - message + - stepIndex + type: object required: - - code - - context - - message - - stepIndex - - transient + - count + - error type: object type: array required: From 2ab26abf1ccd4ce7ecbfbe26d2fd7d9aa433426c Mon Sep 17 00:00:00 2001 From: scme0 Date: Tue, 7 Oct 2025 12:10:30 +0200 Subject: [PATCH 3/3] update promotion task crd --- .../gitops-operator/crds/promotiontasks.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml index b6ec93c9..ef3c67a9 100644 --- a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml +++ b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml @@ -385,17 +385,17 @@ spec: properties: code: type: string - context: - type: string message: type: string stepIndex: type: integer + while: + type: string required: - code - - context - message - stepIndex + - while type: object observedGeneration: format: int64 @@ -656,17 +656,17 @@ spec: properties: code: type: string - context: - type: string message: type: string stepIndex: type: integer + while: + type: string required: - code - - context - message - stepIndex + - while type: object required: - count