@@ -7,7 +7,8 @@ type ListOf<T> = {
7
7
items : Array < T > ;
8
8
} ;
9
9
10
- /** Source overrides the source definition set in the application. This is typically set in a Rollback operation and is nil during a Sync operation */
10
+ /** Source overrides the source definition set in the application.
11
+ This is typically set in a Rollback operation and is nil during a Sync operation */
11
12
export interface ApplicationSource {
12
13
chart ?: string | null ;
13
14
directory ?: {
@@ -51,12 +52,28 @@ export interface ApplicationSource {
51
52
commonAnnotations ?: Record < string , string > | null ;
52
53
commonAnnotationsEnvsubst ?: boolean | null ;
53
54
commonLabels ?: Record < string , string > | null ;
55
+ components ?: Array < string > | null ;
54
56
forceCommonAnnotations ?: boolean | null ;
55
57
forceCommonLabels ?: boolean | null ;
56
58
images ?: Array < string > | null ;
59
+ labelWithoutSelector ?: boolean | null ;
57
60
namePrefix ?: string | null ;
58
61
nameSuffix ?: string | null ;
59
62
namespace ?: string | null ;
63
+ patches ?: Array < {
64
+ options ?: Record < string , boolean > | null ;
65
+ patch ?: string | null ;
66
+ path ?: string | null ;
67
+ target ?: {
68
+ annotationSelector ?: string | null ;
69
+ group ?: string | null ;
70
+ kind ?: string | null ;
71
+ labelSelector ?: string | null ;
72
+ name ?: string | null ;
73
+ namespace ?: string | null ;
74
+ version ?: string | null ;
75
+ } | null ;
76
+ } > | null ;
60
77
replicas ?: Array < {
61
78
count : c . IntOrString ;
62
79
name : string ;
@@ -126,12 +143,15 @@ function toApplicationSource_kustomize(input: c.JSONValue) {
126
143
commonAnnotations : c . readOpt ( obj [ "commonAnnotations" ] , x => c . readMap ( x , c . checkStr ) ) ,
127
144
commonAnnotationsEnvsubst : c . readOpt ( obj [ "commonAnnotationsEnvsubst" ] , c . checkBool ) ,
128
145
commonLabels : c . readOpt ( obj [ "commonLabels" ] , x => c . readMap ( x , c . checkStr ) ) ,
146
+ components : c . readOpt ( obj [ "components" ] , x => c . readList ( x , c . checkStr ) ) ,
129
147
forceCommonAnnotations : c . readOpt ( obj [ "forceCommonAnnotations" ] , c . checkBool ) ,
130
148
forceCommonLabels : c . readOpt ( obj [ "forceCommonLabels" ] , c . checkBool ) ,
131
149
images : c . readOpt ( obj [ "images" ] , x => c . readList ( x , c . checkStr ) ) ,
150
+ labelWithoutSelector : c . readOpt ( obj [ "labelWithoutSelector" ] , c . checkBool ) ,
132
151
namePrefix : c . readOpt ( obj [ "namePrefix" ] , c . checkStr ) ,
133
152
nameSuffix : c . readOpt ( obj [ "nameSuffix" ] , c . checkStr ) ,
134
153
namespace : c . readOpt ( obj [ "namespace" ] , c . checkStr ) ,
154
+ patches : c . readOpt ( obj [ "patches" ] , x => c . readList ( x , toApplicationSource_kustomize_patches ) ) ,
135
155
replicas : c . readOpt ( obj [ "replicas" ] , x => c . readList ( x , toApplicationSource_kustomize_replicas ) ) ,
136
156
version : c . readOpt ( obj [ "version" ] , c . checkStr ) ,
137
157
} }
@@ -162,6 +182,14 @@ function toApplicationSource_helm_parameters(input: c.JSONValue) {
162
182
name : c . readOpt ( obj [ "name" ] , c . checkStr ) ,
163
183
value : c . readOpt ( obj [ "value" ] , c . checkStr ) ,
164
184
} }
185
+ function toApplicationSource_kustomize_patches ( input : c . JSONValue ) {
186
+ const obj = c . checkObj ( input ) ;
187
+ return {
188
+ options : c . readOpt ( obj [ "options" ] , x => c . readMap ( x , c . checkBool ) ) ,
189
+ patch : c . readOpt ( obj [ "patch" ] , c . checkStr ) ,
190
+ path : c . readOpt ( obj [ "path" ] , c . checkStr ) ,
191
+ target : c . readOpt ( obj [ "target" ] , toApplicationSource_kustomize_patches_target ) ,
192
+ } }
165
193
function toApplicationSource_kustomize_replicas ( input : c . JSONValue ) {
166
194
const obj = c . checkObj ( input ) ;
167
195
return {
@@ -196,6 +224,17 @@ function toApplicationSource_directory_jsonnet_tlas(input: c.JSONValue) {
196
224
name : c . checkStr ( obj [ "name" ] ) ,
197
225
value : c . checkStr ( obj [ "value" ] ) ,
198
226
} }
227
+ function toApplicationSource_kustomize_patches_target ( input : c . JSONValue ) {
228
+ const obj = c . checkObj ( input ) ;
229
+ return {
230
+ annotationSelector : c . readOpt ( obj [ "annotationSelector" ] , c . checkStr ) ,
231
+ group : c . readOpt ( obj [ "group" ] , c . checkStr ) ,
232
+ kind : c . readOpt ( obj [ "kind" ] , c . checkStr ) ,
233
+ labelSelector : c . readOpt ( obj [ "labelSelector" ] , c . checkStr ) ,
234
+ name : c . readOpt ( obj [ "name" ] , c . checkStr ) ,
235
+ namespace : c . readOpt ( obj [ "namespace" ] , c . checkStr ) ,
236
+ version : c . readOpt ( obj [ "version" ] , c . checkStr ) ,
237
+ } }
199
238
200
239
/** Application is a definition of Application resource. */
201
240
export interface Application {
@@ -303,6 +342,10 @@ export interface Application {
303
342
deployStartedAt ?: c . Time | null ;
304
343
deployedAt : c . Time ;
305
344
id : number ;
345
+ initiatedBy ?: {
346
+ automated ?: boolean | null ;
347
+ username ?: string | null ;
348
+ } | null ;
306
349
revision ?: string | null ;
307
350
revisions ?: Array < string > | null ;
308
351
source ?: ApplicationSource | null ;
@@ -618,6 +661,7 @@ function toApplication_status_history(input: c.JSONValue) {
618
661
deployStartedAt : c . readOpt ( obj [ "deployStartedAt" ] , c . toTime ) ,
619
662
deployedAt : c . toTime ( obj [ "deployedAt" ] ) ,
620
663
id : c . checkNum ( obj [ "id" ] ) ,
664
+ initiatedBy : c . readOpt ( obj [ "initiatedBy" ] , toApplication_status_history_initiatedBy ) ,
621
665
revision : c . readOpt ( obj [ "revision" ] , c . checkStr ) ,
622
666
revisions : c . readOpt ( obj [ "revisions" ] , x => c . readList ( x , c . checkStr ) ) ,
623
667
source : c . readOpt ( obj [ "source" ] , toApplicationSource ) ,
@@ -702,6 +746,12 @@ function toApplication_spec_syncPolicy_retry(input: c.JSONValue) {
702
746
backoff : c . readOpt ( obj [ "backoff" ] , toApplication_spec_syncPolicy_retry_backoff ) ,
703
747
limit : c . readOpt ( obj [ "limit" ] , c . checkNum ) ,
704
748
} }
749
+ function toApplication_status_history_initiatedBy ( input : c . JSONValue ) {
750
+ const obj = c . checkObj ( input ) ;
751
+ return {
752
+ automated : c . readOpt ( obj [ "automated" ] , c . checkBool ) ,
753
+ username : c . readOpt ( obj [ "username" ] , c . checkStr ) ,
754
+ } }
705
755
function toApplication_status_operationState_operation ( input : c . JSONValue ) {
706
756
const obj = c . checkObj ( input ) ;
707
757
return {
@@ -895,7 +945,7 @@ export interface ApplicationSetGenerator {
895
945
values ?: Record < string , string > | null ;
896
946
} | null ;
897
947
list ?: {
898
- elements : Array < c . JSONValue > ;
948
+ elements ? : Array < c . JSONValue > | null ;
899
949
elementsYaml ?: string | null ;
900
950
template ?: ApplicationTemplate | null ;
901
951
} | null ;
@@ -1073,12 +1123,14 @@ export interface ApplicationSetGenerator {
1073
1123
allBranches ?: boolean | null ;
1074
1124
api ?: string | null ;
1075
1125
group : string ;
1126
+ includeSharedProjects ?: boolean | null ;
1076
1127
includeSubgroups ?: boolean | null ;
1077
1128
insecure ?: boolean | null ;
1078
1129
tokenRef ?: {
1079
1130
key : string ;
1080
1131
secretName : string ;
1081
1132
} | null ;
1133
+ topic ?: string | null ;
1082
1134
} | null ;
1083
1135
requeueAfterSeconds ?: number | null ;
1084
1136
template ?: ApplicationTemplate | null ;
@@ -1177,7 +1229,7 @@ function toApplicationSetGenerator_git(input: c.JSONValue) {
1177
1229
function toApplicationSetGenerator_list ( input : c . JSONValue ) {
1178
1230
const obj = c . checkObj ( input ) ;
1179
1231
return {
1180
- elements : c . readList ( obj [ "elements" ] , c . identity ) ,
1232
+ elements : c . readOpt ( obj [ "elements" ] , x => c . readList ( x , c . identity ) ) ,
1181
1233
elementsYaml : c . readOpt ( obj [ "elementsYaml" ] , c . checkStr ) ,
1182
1234
template : c . readOpt ( obj [ "template" ] , toApplicationTemplate ) ,
1183
1235
} }
@@ -1381,9 +1433,11 @@ function toApplicationSetGenerator_scmProvider_gitlab(input: c.JSONValue) {
1381
1433
allBranches : c . readOpt ( obj [ "allBranches" ] , c . checkBool ) ,
1382
1434
api : c . readOpt ( obj [ "api" ] , c . checkStr ) ,
1383
1435
group : c . checkStr ( obj [ "group" ] ) ,
1436
+ includeSharedProjects : c . readOpt ( obj [ "includeSharedProjects" ] , c . checkBool ) ,
1384
1437
includeSubgroups : c . readOpt ( obj [ "includeSubgroups" ] , c . checkBool ) ,
1385
1438
insecure : c . readOpt ( obj [ "insecure" ] , c . checkBool ) ,
1386
1439
tokenRef : c . readOpt ( obj [ "tokenRef" ] , toApplicationSetGenerator_scmProvider_gitlab_tokenRef ) ,
1440
+ topic : c . readOpt ( obj [ "topic" ] , c . checkStr ) ,
1387
1441
} }
1388
1442
function toApplicationSetGenerator_pullRequest_azuredevops_tokenRef ( input : c . JSONValue ) {
1389
1443
const obj = c . checkObj ( input ) ;
@@ -1650,8 +1704,14 @@ export interface ApplicationSet {
1650
1704
generators : Array < ApplicationSetGenerator > ;
1651
1705
goTemplate ?: boolean | null ;
1652
1706
goTemplateOptions ?: Array < string > | null ;
1707
+ ignoreApplicationDifferences ?: Array < {
1708
+ jqPathExpressions ?: Array < string > | null ;
1709
+ jsonPointers ?: Array < string > | null ;
1710
+ name ?: string | null ;
1711
+ } > | null ;
1653
1712
preservedFields ?: {
1654
1713
annotations ?: Array < string > | null ;
1714
+ labels ?: Array < string > | null ;
1655
1715
} | null ;
1656
1716
strategy ?: {
1657
1717
rollingSync ?: {
@@ -1671,6 +1731,7 @@ export interface ApplicationSet {
1671
1731
preserveResourcesOnDeletion ?: boolean | null ;
1672
1732
} | null ;
1673
1733
template : ApplicationTemplate ;
1734
+ templatePatch ?: string | null ;
1674
1735
} ;
1675
1736
status ?: {
1676
1737
applicationStatus ?: Array < {
@@ -1679,6 +1740,7 @@ export interface ApplicationSet {
1679
1740
message : string ;
1680
1741
status : string ;
1681
1742
step : string ;
1743
+ targetRevisions : Array < string > ;
1682
1744
} > | null ;
1683
1745
conditions ?: Array < {
1684
1746
lastTransitionTime ?: c . Time | null ;
@@ -1687,6 +1749,21 @@ export interface ApplicationSet {
1687
1749
status : string ;
1688
1750
type : string ;
1689
1751
} > | null ;
1752
+ resources ?: Array < {
1753
+ group ?: string | null ;
1754
+ health ?: {
1755
+ message ?: string | null ;
1756
+ status ?: string | null ;
1757
+ } | null ;
1758
+ hook ?: boolean | null ;
1759
+ kind ?: string | null ;
1760
+ name ?: string | null ;
1761
+ namespace ?: string | null ;
1762
+ requiresPruning ?: boolean | null ;
1763
+ status ?: string | null ;
1764
+ syncWave ?: number | null ;
1765
+ version ?: string | null ;
1766
+ } > | null ;
1690
1767
} | null ;
1691
1768
}
1692
1769
export function toApplicationSet ( input : c . JSONValue ) : ApplicationSet & c . ApiKind {
@@ -1726,21 +1803,32 @@ function toApplicationSet_spec(input: c.JSONValue) {
1726
1803
generators : c . readList ( obj [ "generators" ] , toApplicationSetGenerator ) ,
1727
1804
goTemplate : c . readOpt ( obj [ "goTemplate" ] , c . checkBool ) ,
1728
1805
goTemplateOptions : c . readOpt ( obj [ "goTemplateOptions" ] , x => c . readList ( x , c . checkStr ) ) ,
1806
+ ignoreApplicationDifferences : c . readOpt ( obj [ "ignoreApplicationDifferences" ] , x => c . readList ( x , toApplicationSet_spec_ignoreApplicationDifferences ) ) ,
1729
1807
preservedFields : c . readOpt ( obj [ "preservedFields" ] , toApplicationSet_spec_preservedFields ) ,
1730
1808
strategy : c . readOpt ( obj [ "strategy" ] , toApplicationSet_spec_strategy ) ,
1731
1809
syncPolicy : c . readOpt ( obj [ "syncPolicy" ] , toApplicationSet_spec_syncPolicy ) ,
1732
1810
template : toApplicationTemplate ( obj [ "template" ] ) ,
1811
+ templatePatch : c . readOpt ( obj [ "templatePatch" ] , c . checkStr ) ,
1733
1812
} }
1734
1813
function toApplicationSet_status ( input : c . JSONValue ) {
1735
1814
const obj = c . checkObj ( input ) ;
1736
1815
return {
1737
1816
applicationStatus : c . readOpt ( obj [ "applicationStatus" ] , x => c . readList ( x , toApplicationSet_status_applicationStatus ) ) ,
1738
1817
conditions : c . readOpt ( obj [ "conditions" ] , x => c . readList ( x , toApplicationSet_status_conditions ) ) ,
1818
+ resources : c . readOpt ( obj [ "resources" ] , x => c . readList ( x , toApplicationSet_status_resources ) ) ,
1819
+ } }
1820
+ function toApplicationSet_spec_ignoreApplicationDifferences ( input : c . JSONValue ) {
1821
+ const obj = c . checkObj ( input ) ;
1822
+ return {
1823
+ jqPathExpressions : c . readOpt ( obj [ "jqPathExpressions" ] , x => c . readList ( x , c . checkStr ) ) ,
1824
+ jsonPointers : c . readOpt ( obj [ "jsonPointers" ] , x => c . readList ( x , c . checkStr ) ) ,
1825
+ name : c . readOpt ( obj [ "name" ] , c . checkStr ) ,
1739
1826
} }
1740
1827
function toApplicationSet_spec_preservedFields ( input : c . JSONValue ) {
1741
1828
const obj = c . checkObj ( input ) ;
1742
1829
return {
1743
1830
annotations : c . readOpt ( obj [ "annotations" ] , x => c . readList ( x , c . checkStr ) ) ,
1831
+ labels : c . readOpt ( obj [ "labels" ] , x => c . readList ( x , c . checkStr ) ) ,
1744
1832
} }
1745
1833
function toApplicationSet_spec_strategy ( input : c . JSONValue ) {
1746
1834
const obj = c . checkObj ( input ) ;
@@ -1762,6 +1850,7 @@ function toApplicationSet_status_applicationStatus(input: c.JSONValue) {
1762
1850
message : c . checkStr ( obj [ "message" ] ) ,
1763
1851
status : c . checkStr ( obj [ "status" ] ) ,
1764
1852
step : c . checkStr ( obj [ "step" ] ) ,
1853
+ targetRevisions : c . readList ( obj [ "targetRevisions" ] , c . checkStr ) ,
1765
1854
} }
1766
1855
function toApplicationSet_status_conditions ( input : c . JSONValue ) {
1767
1856
const obj = c . checkObj ( input ) ;
@@ -1772,11 +1861,31 @@ function toApplicationSet_status_conditions(input: c.JSONValue) {
1772
1861
status : c . checkStr ( obj [ "status" ] ) ,
1773
1862
type : c . checkStr ( obj [ "type" ] ) ,
1774
1863
} }
1864
+ function toApplicationSet_status_resources ( input : c . JSONValue ) {
1865
+ const obj = c . checkObj ( input ) ;
1866
+ return {
1867
+ group : c . readOpt ( obj [ "group" ] , c . checkStr ) ,
1868
+ health : c . readOpt ( obj [ "health" ] , toApplicationSet_status_resources_health ) ,
1869
+ hook : c . readOpt ( obj [ "hook" ] , c . checkBool ) ,
1870
+ kind : c . readOpt ( obj [ "kind" ] , c . checkStr ) ,
1871
+ name : c . readOpt ( obj [ "name" ] , c . checkStr ) ,
1872
+ namespace : c . readOpt ( obj [ "namespace" ] , c . checkStr ) ,
1873
+ requiresPruning : c . readOpt ( obj [ "requiresPruning" ] , c . checkBool ) ,
1874
+ status : c . readOpt ( obj [ "status" ] , c . checkStr ) ,
1875
+ syncWave : c . readOpt ( obj [ "syncWave" ] , c . checkNum ) ,
1876
+ version : c . readOpt ( obj [ "version" ] , c . checkStr ) ,
1877
+ } }
1775
1878
function toApplicationSet_spec_strategy_rollingSync ( input : c . JSONValue ) {
1776
1879
const obj = c . checkObj ( input ) ;
1777
1880
return {
1778
1881
steps : c . readOpt ( obj [ "steps" ] , x => c . readList ( x , toApplicationSet_spec_strategy_rollingSync_steps ) ) ,
1779
1882
} }
1883
+ function toApplicationSet_status_resources_health ( input : c . JSONValue ) {
1884
+ const obj = c . checkObj ( input ) ;
1885
+ return {
1886
+ message : c . readOpt ( obj [ "message" ] , c . checkStr ) ,
1887
+ status : c . readOpt ( obj [ "status" ] , c . checkStr ) ,
1888
+ } }
1780
1889
function toApplicationSet_spec_strategy_rollingSync_steps ( input : c . JSONValue ) {
1781
1890
const obj = c . checkObj ( input ) ;
1782
1891
return {
@@ -1803,7 +1912,12 @@ export function toApplicationSetList(input: c.JSONValue): ApplicationSetList & c
1803
1912
items : c . readList ( obj . items , toApplicationSet ) ,
1804
1913
} }
1805
1914
1806
- /** AppProject provides a logical grouping of applications, providing controls for: * where the apps may deploy to (cluster whitelist) * what may be deployed (repository whitelist, resource whitelist/blacklist) * who can access these applications (roles, OIDC group claims bindings) * and what they can do (RBAC policies) * automation access to these roles (JWT tokens) */
1915
+ /** AppProject provides a logical grouping of applications, providing controls for:
1916
+ * where the apps may deploy to (cluster whitelist)
1917
+ * what may be deployed (repository whitelist, resource whitelist/blacklist)
1918
+ * who can access these applications (roles, OIDC group claims bindings)
1919
+ * and what they can do (RBAC policies)
1920
+ * automation access to these roles (JWT tokens) */
1807
1921
export interface AppProject {
1808
1922
apiVersion ?: "argoproj.io/v1alpha1" ;
1809
1923
kind ?: "AppProject" ;
0 commit comments