Skip to content

Commit 8829169

Browse files
authored
feat: [CDS-98794]: Adding support for Multi-Source application (#1082)
* feat: [CDS-98794]: Adding support for Multi-Source application Signed-off-by: Mirko Teodorovic <[email protected]> * fix repo delete Signed-off-by: Mirko Teodorovic <[email protected]> * fix: [CDS-98794)]: MultiSource app Signed-off-by: Mirko Teodorovic <[email protected]> * add docs, update data Signed-off-by: Mirko Teodorovic <[email protected]> * update harness go sdk Signed-off-by: Mirko Teodorovic <[email protected]> * add changelog Signed-off-by: Mirko Teodorovic <[email protected]> * Update platform_gitops_applications.md * Update platform_gitops_repository.md * Update platform_gitops_applications.md * Update platform_gitops_repository.md --------- Signed-off-by: Mirko Teodorovic <[email protected]>
1 parent ebaf3af commit 8829169

File tree

9 files changed

+1477
-415
lines changed

9 files changed

+1477
-415
lines changed

.changelog/1082.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:enhancement
2+
resource/harness_platform_gitops_applications: add support for multi source applications
3+
resource/harness_platform_gitops_repository: add force delete repo that skips validation against apps using repo
4+
```

docs/data-sources/platform_gitops_applications.md

Lines changed: 175 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Read-Only:
9999
- `destination` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--destination))
100100
- `project` (String)
101101
- `source` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source))
102+
- `sources` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources))
102103
- `sync_policy` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sync_policy))
103104

104105
<a id="nestedobjatt--application--spec--destination"></a>
@@ -127,26 +128,26 @@ Read-Only:
127128
- `target_revision` (String)
128129

129130
<a id="nestedobjatt--application--spec--source--directory"></a>
130-
### Nested Schema for `application.spec.source.directory`
131+
### Nested Schema for `application.spec.source.target_revision`
131132

132133
Read-Only:
133134

134135
- `exclude` (String)
135136
- `include` (String)
136-
- `jsonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--directory--jsonnet))
137+
- `jsonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--jsonnet))
137138
- `recurse` (Boolean)
138139

139-
<a id="nestedobjatt--application--spec--source--directory--jsonnet"></a>
140-
### Nested Schema for `application.spec.source.directory.jsonnet`
140+
<a id="nestedobjatt--application--spec--source--target_revision--jsonnet"></a>
141+
### Nested Schema for `application.spec.source.target_revision.jsonnet`
141142

142143
Read-Only:
143144

144-
- `ext_vars` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--directory--jsonnet--ext_vars))
145+
- `ext_vars` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--jsonnet--ext_vars))
145146
- `libs` (List of String)
146-
- `tlas` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--directory--jsonnet--tlas))
147+
- `tlas` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--jsonnet--tlas))
147148

148-
<a id="nestedobjatt--application--spec--source--directory--jsonnet--ext_vars"></a>
149-
### Nested Schema for `application.spec.source.directory.jsonnet.ext_vars`
149+
<a id="nestedobjatt--application--spec--source--target_revision--jsonnet--ext_vars"></a>
150+
### Nested Schema for `application.spec.source.target_revision.jsonnet.tlas`
150151

151152
Read-Only:
152153

@@ -155,8 +156,8 @@ Read-Only:
155156
- `value` (String)
156157

157158

158-
<a id="nestedobjatt--application--spec--source--directory--jsonnet--tlas"></a>
159-
### Nested Schema for `application.spec.source.directory.jsonnet.tlas`
159+
<a id="nestedobjatt--application--spec--source--target_revision--jsonnet--tlas"></a>
160+
### Nested Schema for `application.spec.source.target_revision.jsonnet.tlas`
160161

161162
Read-Only:
162163

@@ -168,29 +169,29 @@ Read-Only:
168169

169170

170171
<a id="nestedobjatt--application--spec--source--helm"></a>
171-
### Nested Schema for `application.spec.source.helm`
172+
### Nested Schema for `application.spec.source.target_revision`
172173

173174
Read-Only:
174175

175-
- `file_parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--helm--file_parameters))
176-
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--helm--parameters))
176+
- `file_parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--file_parameters))
177+
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--parameters))
177178
- `pass_credentials` (Boolean)
178179
- `release_name` (String)
179180
- `value_files` (List of String)
180181
- `values` (String)
181182
- `version` (String)
182183

183-
<a id="nestedobjatt--application--spec--source--helm--file_parameters"></a>
184-
### Nested Schema for `application.spec.source.helm.file_parameters`
184+
<a id="nestedobjatt--application--spec--source--target_revision--file_parameters"></a>
185+
### Nested Schema for `application.spec.source.target_revision.file_parameters`
185186

186187
Read-Only:
187188

188189
- `name` (String)
189190
- `path` (String)
190191

191192

192-
<a id="nestedobjatt--application--spec--source--helm--parameters"></a>
193-
### Nested Schema for `application.spec.source.helm.parameters`
193+
<a id="nestedobjatt--application--spec--source--target_revision--parameters"></a>
194+
### Nested Schema for `application.spec.source.target_revision.parameters`
194195

195196
Read-Only:
196197

@@ -201,15 +202,15 @@ Read-Only:
201202

202203

203204
<a id="nestedobjatt--application--spec--source--ksonnet"></a>
204-
### Nested Schema for `application.spec.source.ksonnet`
205+
### Nested Schema for `application.spec.source.target_revision`
205206

206207
Read-Only:
207208

208209
- `environment` (String)
209-
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--ksonnet--parameters))
210+
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--parameters))
210211

211-
<a id="nestedobjatt--application--spec--source--ksonnet--parameters"></a>
212-
### Nested Schema for `application.spec.source.ksonnet.parameters`
212+
<a id="nestedobjatt--application--spec--source--target_revision--parameters"></a>
213+
### Nested Schema for `application.spec.source.target_revision.parameters`
213214

214215
Read-Only:
215216

@@ -220,7 +221,7 @@ Read-Only:
220221

221222

222223
<a id="nestedobjatt--application--spec--source--kustomize"></a>
223-
### Nested Schema for `application.spec.source.kustomize`
224+
### Nested Schema for `application.spec.source.target_revision`
224225

225226
Read-Only:
226227

@@ -235,15 +236,158 @@ Read-Only:
235236

236237

237238
<a id="nestedobjatt--application--spec--source--plugin"></a>
238-
### Nested Schema for `application.spec.source.plugin`
239+
### Nested Schema for `application.spec.source.target_revision`
239240

240241
Read-Only:
241242

242-
- `env` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--plugin--env))
243+
- `env` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--source--target_revision--env))
243244
- `name` (String)
244245

245-
<a id="nestedobjatt--application--spec--source--plugin--env"></a>
246-
### Nested Schema for `application.spec.source.plugin.env`
246+
<a id="nestedobjatt--application--spec--source--target_revision--env"></a>
247+
### Nested Schema for `application.spec.source.target_revision.env`
248+
249+
Read-Only:
250+
251+
- `name` (String)
252+
- `value` (String)
253+
254+
255+
256+
257+
<a id="nestedobjatt--application--spec--sources"></a>
258+
### Nested Schema for `application.spec.sources`
259+
260+
Read-Only:
261+
262+
- `chart` (String)
263+
- `directory` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--directory))
264+
- `helm` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--helm))
265+
- `ksonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--ksonnet))
266+
- `kustomize` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--kustomize))
267+
- `path` (String)
268+
- `plugin` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--plugin))
269+
- `ref` (String)
270+
- `repo_url` (String)
271+
- `target_revision` (String)
272+
273+
<a id="nestedobjatt--application--spec--sources--directory"></a>
274+
### Nested Schema for `application.spec.sources.target_revision`
275+
276+
Read-Only:
277+
278+
- `exclude` (String)
279+
- `include` (String)
280+
- `jsonnet` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--jsonnet))
281+
- `recurse` (Boolean)
282+
283+
<a id="nestedobjatt--application--spec--sources--target_revision--jsonnet"></a>
284+
### Nested Schema for `application.spec.sources.target_revision.jsonnet`
285+
286+
Read-Only:
287+
288+
- `ext_vars` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--jsonnet--ext_vars))
289+
- `libs` (List of String)
290+
- `tlas` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--jsonnet--tlas))
291+
292+
<a id="nestedobjatt--application--spec--sources--target_revision--jsonnet--ext_vars"></a>
293+
### Nested Schema for `application.spec.sources.target_revision.jsonnet.tlas`
294+
295+
Read-Only:
296+
297+
- `code` (Boolean)
298+
- `name` (String)
299+
- `value` (String)
300+
301+
302+
<a id="nestedobjatt--application--spec--sources--target_revision--jsonnet--tlas"></a>
303+
### Nested Schema for `application.spec.sources.target_revision.jsonnet.tlas`
304+
305+
Read-Only:
306+
307+
- `code` (Boolean)
308+
- `name` (String)
309+
- `value` (String)
310+
311+
312+
313+
314+
<a id="nestedobjatt--application--spec--sources--helm"></a>
315+
### Nested Schema for `application.spec.sources.target_revision`
316+
317+
Read-Only:
318+
319+
- `file_parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--file_parameters))
320+
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--parameters))
321+
- `pass_credentials` (Boolean)
322+
- `release_name` (String)
323+
- `value_files` (List of String)
324+
- `values` (String)
325+
- `version` (String)
326+
327+
<a id="nestedobjatt--application--spec--sources--target_revision--file_parameters"></a>
328+
### Nested Schema for `application.spec.sources.target_revision.file_parameters`
329+
330+
Read-Only:
331+
332+
- `name` (String)
333+
- `path` (String)
334+
335+
336+
<a id="nestedobjatt--application--spec--sources--target_revision--parameters"></a>
337+
### Nested Schema for `application.spec.sources.target_revision.parameters`
338+
339+
Read-Only:
340+
341+
- `force_string` (Boolean)
342+
- `name` (String)
343+
- `value` (String)
344+
345+
346+
347+
<a id="nestedobjatt--application--spec--sources--ksonnet"></a>
348+
### Nested Schema for `application.spec.sources.target_revision`
349+
350+
Read-Only:
351+
352+
- `environment` (String)
353+
- `parameters` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--parameters))
354+
355+
<a id="nestedobjatt--application--spec--sources--target_revision--parameters"></a>
356+
### Nested Schema for `application.spec.sources.target_revision.parameters`
357+
358+
Read-Only:
359+
360+
- `component` (String)
361+
- `name` (String)
362+
- `value` (String)
363+
364+
365+
366+
<a id="nestedobjatt--application--spec--sources--kustomize"></a>
367+
### Nested Schema for `application.spec.sources.target_revision`
368+
369+
Read-Only:
370+
371+
- `common_annotations` (Map of String)
372+
- `common_labels` (Map of String)
373+
- `force_common_annotations` (Boolean)
374+
- `force_common_labels` (Boolean)
375+
- `images` (List of String)
376+
- `name_prefix` (String)
377+
- `name_suffix` (String)
378+
- `version` (String)
379+
380+
381+
<a id="nestedobjatt--application--spec--sources--plugin"></a>
382+
### Nested Schema for `application.spec.sources.target_revision`
383+
384+
Read-Only:
385+
386+
- `env` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sources--target_revision--env))
387+
- `name` (String)
388+
389+
<a id="nestedobjatt--application--spec--sources--target_revision--env"></a>
390+
### Nested Schema for `application.spec.sources.target_revision.env`
247391

248392
Read-Only:
249393

@@ -263,7 +407,7 @@ Read-Only:
263407
- `sync_options` (List of String)
264408

265409
<a id="nestedobjatt--application--spec--sync_policy--automated"></a>
266-
### Nested Schema for `application.spec.sync_policy.automated`
410+
### Nested Schema for `application.spec.sync_policy.sync_options`
267411

268412
Read-Only:
269413

@@ -273,15 +417,15 @@ Read-Only:
273417

274418

275419
<a id="nestedobjatt--application--spec--sync_policy--retry"></a>
276-
### Nested Schema for `application.spec.sync_policy.retry`
420+
### Nested Schema for `application.spec.sync_policy.sync_options`
277421

278422
Read-Only:
279423

280-
- `backoff` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sync_policy--retry--backoff))
424+
- `backoff` (List of Object) (see [below for nested schema](#nestedobjatt--application--spec--sync_policy--sync_options--backoff))
281425
- `limit` (String)
282426

283-
<a id="nestedobjatt--application--spec--sync_policy--retry--backoff"></a>
284-
### Nested Schema for `application.spec.sync_policy.retry.backoff`
427+
<a id="nestedobjatt--application--spec--sync_policy--sync_options--backoff"></a>
428+
### Nested Schema for `application.spec.sync_policy.sync_options.backoff`
285429

286430
Read-Only:
287431

0 commit comments

Comments
 (0)