From 9d7e3860b42ed8ad83d2fb1a7fb78aed75f8e1af Mon Sep 17 00:00:00 2001 From: scme0 Date: Thu, 18 Sep 2025 11:38:36 +0200 Subject: [PATCH 1/3] update crd --- .../gitops-operator/crds/promotiontasks.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 ecd3dc7c..efaa4d8a 100644 --- a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml +++ b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml @@ -137,6 +137,10 @@ spec: type: object promoteAppWithCommit: properties: + commitDescription: + type: string + commitMessage: + type: string promotionValues: items: properties: @@ -182,11 +186,19 @@ spec: - namespace type: object required: + - commitDescription + - commitMessage - promotionValues - targetApplication type: object promoteAppWithPR: properties: + prBranchName: + type: string + prDescription: + type: string + prTitle: + type: string promotionValues: items: properties: @@ -232,6 +244,9 @@ spec: - namespace type: object required: + - prBranchName + - prDescription + - prTitle - promotionValues - targetApplication type: object From 6724b4d8761ed74f1d5c658fb848222c12e62fc7 Mon Sep 17 00:00:00 2001 From: scme0 Date: Thu, 18 Sep 2025 14:53:09 +0200 Subject: [PATCH 2/3] fix crd --- .../gitops-operator/crds/promotiontasks.yaml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 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 efaa4d8a..6cccbe83 100644 --- a/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml +++ b/charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml @@ -151,15 +151,14 @@ spec: properties: items: properties: - jsonPath: + path: minLength: 1 - pattern: ^\$[.\[\]'"0-9a-zA-Z_*?@()]*$ type: string value: minLength: 1 type: string required: - - jsonPath + - path - value type: object minItems: 1 @@ -209,15 +208,14 @@ spec: properties: items: properties: - jsonPath: + path: minLength: 1 - pattern: ^\$[.\[\]'"0-9a-zA-Z_*?@()]*$ type: string value: minLength: 1 type: string required: - - jsonPath + - path - value type: object minItems: 1 @@ -407,15 +405,14 @@ spec: properties: items: properties: - jsonPath: + path: minLength: 1 - pattern: ^\$[.\[\]'"0-9a-zA-Z_*?@()]*$ type: string value: minLength: 1 type: string required: - - jsonPath + - path - value type: object minItems: 1 @@ -461,7 +458,7 @@ spec: commitSha: maxLength: 40 minLength: 7 - pattern: ^[A-Fa-f0-9]+$ + pattern: (^[A-Fa-f0-9]+$|^$) type: string phase: description: PromoteAppWithCommitPhase @@ -574,7 +571,7 @@ spec: commitSha: maxLength: 40 minLength: 7 - pattern: ^[A-Fa-f0-9]+$ + pattern: (^[A-Fa-f0-9]+$|^$) type: string phase: description: VerifyAppPhase From 808cfa9cbc9c8eac3f3246ed84f817d7bd6b4543 Mon Sep 17 00:00:00 2001 From: "codefresh-v2-pipelines[bot]" <109073600+codefresh-v2-pipelines[bot]@users.noreply.github.com> Date: Mon, 22 Sep 2025 10:55:53 +0000 Subject: [PATCH 3/3] [gitops-operator]feat: add promoteAppWithCommitHandler implementation --- charts/gitops-runtime/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/gitops-runtime/values.yaml b/charts/gitops-runtime/values.yaml index 861ecd60..862a700d 100644 --- a/charts/gitops-runtime/values.yaml +++ b/charts/gitops-runtime/values.yaml @@ -726,7 +726,7 @@ gitops-operator: # -- defaults registry: quay.io repository: codefresh/codefresh-gitops-operator - tag: c409284 + tag: 18fcd09 env: GITOPS_OPERATOR_VERSION: 0.11.1 serviceAccount: