Skip to content

Commit 5471859

Browse files
feat: add promoteAppWithCommitHandler implementation [gitops-operator] (#738)
* update crd * fix crd * [gitops-operator]feat: add promoteAppWithCommitHandler implementation --------- Co-authored-by: codefresh-v2-pipelines[bot] <109073600+codefresh-v2-pipelines[bot]@users.noreply.github.com>
1 parent 5318c61 commit 5471859

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

charts/gitops-runtime/templates/_components/gitops-operator/crds/promotiontasks.yaml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ spec:
137137
type: object
138138
promoteAppWithCommit:
139139
properties:
140+
commitDescription:
141+
type: string
142+
commitMessage:
143+
type: string
140144
promotionValues:
141145
items:
142146
properties:
@@ -147,15 +151,14 @@ spec:
147151
properties:
148152
items:
149153
properties:
150-
jsonPath:
154+
path:
151155
minLength: 1
152-
pattern: ^\$[.\[\]'"0-9a-zA-Z_*?@()]*$
153156
type: string
154157
value:
155158
minLength: 1
156159
type: string
157160
required:
158-
- jsonPath
161+
- path
159162
- value
160163
type: object
161164
minItems: 1
@@ -182,11 +185,19 @@ spec:
182185
- namespace
183186
type: object
184187
required:
188+
- commitDescription
189+
- commitMessage
185190
- promotionValues
186191
- targetApplication
187192
type: object
188193
promoteAppWithPR:
189194
properties:
195+
prBranchName:
196+
type: string
197+
prDescription:
198+
type: string
199+
prTitle:
200+
type: string
190201
promotionValues:
191202
items:
192203
properties:
@@ -197,15 +208,14 @@ spec:
197208
properties:
198209
items:
199210
properties:
200-
jsonPath:
211+
path:
201212
minLength: 1
202-
pattern: ^\$[.\[\]'"0-9a-zA-Z_*?@()]*$
203213
type: string
204214
value:
205215
minLength: 1
206216
type: string
207217
required:
208-
- jsonPath
218+
- path
209219
- value
210220
type: object
211221
minItems: 1
@@ -232,6 +242,9 @@ spec:
232242
- namespace
233243
type: object
234244
required:
245+
- prBranchName
246+
- prDescription
247+
- prTitle
235248
- promotionValues
236249
- targetApplication
237250
type: object
@@ -392,15 +405,14 @@ spec:
392405
properties:
393406
items:
394407
properties:
395-
jsonPath:
408+
path:
396409
minLength: 1
397-
pattern: ^\$[.\[\]'"0-9a-zA-Z_*?@()]*$
398410
type: string
399411
value:
400412
minLength: 1
401413
type: string
402414
required:
403-
- jsonPath
415+
- path
404416
- value
405417
type: object
406418
minItems: 1
@@ -446,7 +458,7 @@ spec:
446458
commitSha:
447459
maxLength: 40
448460
minLength: 7
449-
pattern: ^[A-Fa-f0-9]+$
461+
pattern: (^[A-Fa-f0-9]+$|^<any-commit>$)
450462
type: string
451463
phase:
452464
description: PromoteAppWithCommitPhase
@@ -559,7 +571,7 @@ spec:
559571
commitSha:
560572
maxLength: 40
561573
minLength: 7
562-
pattern: ^[A-Fa-f0-9]+$
574+
pattern: (^[A-Fa-f0-9]+$|^<any-commit>$)
563575
type: string
564576
phase:
565577
description: VerifyAppPhase

charts/gitops-runtime/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ gitops-operator:
726726
# -- defaults
727727
registry: quay.io
728728
repository: codefresh/codefresh-gitops-operator
729-
tag: c409284
729+
tag: 18fcd09
730730
env:
731731
GITOPS_OPERATOR_VERSION: 0.11.1
732732
serviceAccount:

0 commit comments

Comments
 (0)