Skip to content

Commit 060a568

Browse files
feat: codegen
Signed-off-by: Denis <[email protected]>
1 parent 3a0d8fe commit 060a568

File tree

9 files changed

+1079
-581
lines changed

9 files changed

+1079
-581
lines changed

api/jsonschema/schema.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5592,6 +5592,13 @@
55925592
"name": {
55935593
"description": "name of the mutex",
55945594
"type": "string"
5595+
},
5596+
"selectors": {
5597+
"description": "Selectors is a list of references to dynamic values (like parameters, labels, annotations) that can be added to mutex key to make concurrency more customizable",
5598+
"items": {
5599+
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SyncSelector"
5600+
},
5601+
"type": "array"
55955602
}
55965603
},
55975604
"type": "object"
@@ -6374,6 +6381,13 @@
63746381
"configMapKeyRef": {
63756382
"$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector",
63766383
"description": "ConfigMapKeyRef is configmap selector for Semaphore configuration"
6384+
},
6385+
"selectors": {
6386+
"description": "Selectors is a list of references to dynamic values (like parameters, labels, annotations) that can be added to semaphore key to make concurrency more customizable",
6387+
"items": {
6388+
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SyncSelector"
6389+
},
6390+
"type": "array"
63776391
}
63786392
},
63796393
"type": "object"
@@ -6506,6 +6520,20 @@
65066520
},
65076521
"type": "object"
65086522
},
6523+
"io.argoproj.workflow.v1alpha1.SyncSelector": {
6524+
"description": "Synchronization selector",
6525+
"properties": {
6526+
"name": {
6527+
"description": "Name of the selector",
6528+
"type": "string"
6529+
},
6530+
"template": {
6531+
"description": "Template replaced with global variables",
6532+
"type": "string"
6533+
}
6534+
},
6535+
"type": "object"
6536+
},
65096537
"io.argoproj.workflow.v1alpha1.Synchronization": {
65106538
"description": "Synchronization holds synchronization lock configuration",
65116539
"properties": {

api/openapi-spec/swagger.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9738,6 +9738,13 @@
97389738
"name": {
97399739
"description": "name of the mutex",
97409740
"type": "string"
9741+
},
9742+
"selectors": {
9743+
"description": "Selectors is a list of references to dynamic values (like parameters, labels, annotations) that can be added to mutex key to make concurrency more customizable",
9744+
"type": "array",
9745+
"items": {
9746+
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SyncSelector"
9747+
}
97419748
}
97429749
}
97439750
},
@@ -10520,6 +10527,13 @@
1052010527
"configMapKeyRef": {
1052110528
"description": "ConfigMapKeyRef is configmap selector for Semaphore configuration",
1052210529
"$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector"
10530+
},
10531+
"selectors": {
10532+
"description": "Selectors is a list of references to dynamic values (like parameters, labels, annotations) that can be added to semaphore key to make concurrency more customizable",
10533+
"type": "array",
10534+
"items": {
10535+
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.SyncSelector"
10536+
}
1052310537
}
1052410538
}
1052510539
},
@@ -10651,6 +10665,20 @@
1065110665
}
1065210666
}
1065310667
},
10668+
"io.argoproj.workflow.v1alpha1.SyncSelector": {
10669+
"description": "Synchronization selector",
10670+
"type": "object",
10671+
"properties": {
10672+
"name": {
10673+
"description": "Name of the selector",
10674+
"type": "string"
10675+
},
10676+
"template": {
10677+
"description": "Template replaced with global variables",
10678+
"type": "string"
10679+
}
10680+
}
10681+
},
1065410682
"io.argoproj.workflow.v1alpha1.Synchronization": {
1065510683
"description": "Synchronization holds synchronization lock configuration",
1065610684
"type": "object",

docs/fields.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,6 +2626,7 @@ Mutex holds Mutex configuration
26262626
| Field Name | Field Type | Description |
26272627
|:----------:|:----------:|---------------|
26282628
|`name`|`string`|name of the mutex|
2629+
|`selectors`|`Array<`[`SyncSelector`](#syncselector)`>`|Selectors is a list of references to dynamic values (like parameters, labels, annotations) that can be added to mutex key to make concurrency more customizable|
26292630

26302631
## SemaphoreRef
26312632

@@ -2644,6 +2645,7 @@ SemaphoreRef is a reference of Semaphore
26442645
| Field Name | Field Type | Description |
26452646
|:----------:|:----------:|---------------|
26462647
|`configMapKeyRef`|[`ConfigMapKeySelector`](#configmapkeyselector)|ConfigMapKeyRef is configmap selector for Semaphore configuration|
2648+
|`selectors`|`Array<`[`SyncSelector`](#syncselector)`>`|Selectors is a list of references to dynamic values (like parameters, labels, annotations) that can be added to semaphore key to make concurrency more customizable|
26472649

26482650
## ArtifactLocation
26492651

@@ -3964,6 +3966,23 @@ MetricLabel is a single label for a prometheus metric
39643966

39653967
RetryNodeAntiAffinity is a placeholder for future expansion, only empty nodeAntiAffinity is allowed. In order to prevent running steps on the same host, it uses "kubernetes.io/hostname".
39663968

3969+
## SyncSelector
3970+
3971+
Synchronization selector
3972+
3973+
<details>
3974+
<summary>Examples with this field (click to open)</summary>
3975+
<br>
3976+
3977+
- [`input-artifact-git.yaml`](https://github.com/argoproj/argo-workflows/blob/master/examples/input-artifact-git.yaml)
3978+
</details>
3979+
3980+
### Fields
3981+
| Field Name | Field Type | Description |
3982+
|:----------:|:----------:|---------------|
3983+
|`name`|`string`|Name of the selector|
3984+
|`template`|`string`|Template replaced with global variables|
3985+
39673986
## ContainerNode
39683987

39693988
_No description available_

0 commit comments

Comments
 (0)