/
types.go
586 lines (495 loc) · 24 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
package v1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// ManifestWork represents a manifests workload that hub wants to deploy on the managed cluster.
// A manifest workload is defined as a set of Kubernetes resources.
// ManifestWork must be created in the cluster namespace on the hub, so that agent on the
// corresponding managed cluster can access this resource and deploy on the managed
// cluster.
type ManifestWork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec represents a desired configuration of work to be deployed on the managed cluster.
Spec ManifestWorkSpec `json:"spec"`
// Status represents the current status of work.
// +optional
Status ManifestWorkStatus `json:"status,omitempty"`
}
const (
// ManifestConfigSpecHashAnnotationKey is the annotation key to identify the configurations
// used by the manifestwork.
ManifestConfigSpecHashAnnotationKey = "open-cluster-management.io/config-spec-hash"
)
// ManifestWorkSpec represents a desired configuration of manifests to be deployed on the managed cluster.
type ManifestWorkSpec struct {
// Workload represents the manifest workload to be deployed on a managed cluster.
Workload ManifestsTemplate `json:"workload,omitempty"`
// DeleteOption represents deletion strategy when the manifestwork is deleted.
// Foreground deletion strategy is applied to all the resource in this manifestwork if it is not set.
// +optional
DeleteOption *DeleteOption `json:"deleteOption,omitempty"`
// ManifestConfigs represents the configurations of manifests defined in workload field.
// +optional
ManifestConfigs []ManifestConfigOption `json:"manifestConfigs,omitempty"`
// Executor is the configuration that makes the work agent to perform some pre-request processing/checking.
// e.g. the executor identity tells the work agent to check the executor has sufficient permission to write
// the workloads to the local managed cluster.
// Note that nil executor is still supported for backward-compatibility which indicates that the work agent
// will not perform any additional actions before applying resources.
// +optional
Executor *ManifestWorkExecutor `json:"executor,omitempty"`
}
// Manifest represents a resource to be deployed on managed cluster.
type Manifest struct {
// +kubebuilder:validation:EmbeddedResource
// +kubebuilder:pruning:PreserveUnknownFields
runtime.RawExtension `json:",inline"`
}
// ManifestsTemplate represents the manifest workload to be deployed on a managed cluster.
type ManifestsTemplate struct {
// Manifests represents a list of kuberenetes resources to be deployed on a managed cluster.
// +optional
Manifests []Manifest `json:"manifests,omitempty"`
}
type DeleteOption struct {
// propagationPolicy can be Foreground, Orphan or SelectivelyOrphan
// SelectivelyOrphan should be rarely used. It is provided for cases where particular resources is transfering
// ownership from one ManifestWork to another or another management unit.
// Setting this value will allow a flow like
// 1. create manifestwork/2 to manage foo
// 2. update manifestwork/1 to selectively orphan foo
// 3. remove foo from manifestwork/1 without impacting continuity because manifestwork/2 adopts it.
// +kubebuilder:default=Foreground
PropagationPolicy DeletePropagationPolicyType `json:"propagationPolicy"`
// selectivelyOrphan represents a list of resources following orphan deletion stratecy
SelectivelyOrphan *SelectivelyOrphan `json:"selectivelyOrphans,omitempty"`
}
// ManifestConfigOption represents the configurations of a manifest defined in workload field.
type ManifestConfigOption struct {
// ResourceIdentifier represents the group, resource, name and namespace of a resoure.
// iff this refers to a resource not created by this manifest work, the related rules will not be executed.
// +kubebuilder:validation:Required
// +required
ResourceIdentifier ResourceIdentifier `json:"resourceIdentifier"`
// FeedbackRules defines what resource status field should be returned. If it is not set or empty,
// no feedback rules will be honored.
// +optional
FeedbackRules []FeedbackRule `json:"feedbackRules,omitempty"`
// UpdateStrategy defines the strategy to update this manifest. UpdateStrategy is Update
// if it is not set.
// +optional
UpdateStrategy *UpdateStrategy `json:"updateStrategy,omitempty"`
}
// ManifestWorkExecutor is the executor that applies the resources to the managed cluster. i.e. the
// work agent.
type ManifestWorkExecutor struct {
// Subject is the subject identity which the work agent uses to talk to the
// local cluster when applying the resources.
Subject ManifestWorkExecutorSubject `json:"subject"`
}
// ManifestWorkExecutorSubject is the subject identity used by the work agent to apply the resources.
// The work agent should check whether the applying resources are out-of-scope of the permission held
// by the executor identity.
type ManifestWorkExecutorSubject struct {
// Type is the type of the subject identity.
// Supported types are: "ServiceAccount".
// +kubebuilder:validation:Enum=ServiceAccount
// +kubebuilder:validation:Required
// +required
Type ManifestWorkExecutorSubjectType `json:"type"`
// ServiceAccount is for identifying which service account to use by the work agent.
// Only required if the type is "ServiceAccount".
// +optional
ServiceAccount *ManifestWorkSubjectServiceAccount `json:"serviceAccount,omitempty"`
}
// ManifestWorkExecutorSubjectType is the type of the subject.
type ManifestWorkExecutorSubjectType string
const (
// ExecutorSubjectTypeServiceAccount indicates that the workload resources belong to a ServiceAccount
// in the managed cluster.
ExecutorSubjectTypeServiceAccount ManifestWorkExecutorSubjectType = "ServiceAccount"
)
// ManifestWorkSubjectServiceAccount references service account in the managed clusters.
type ManifestWorkSubjectServiceAccount struct {
// Namespace is the namespace of the service account.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$`
// +required
Namespace string `json:"namespace"`
// Name is the name of the service account.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=253
// +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)$`
// +required
Name string `json:"name"`
}
// UpdateStrategy defines the strategy to update this manifest
type UpdateStrategy struct {
// type defines the strategy to update this manifest, default value is Update.
// Update type means to update resource by an update call.
// CreateOnly type means do not update resource based on current manifest.
// ServerSideApply type means to update resource using server side apply with work-controller as the field manager.
// If there is conflict, the related Applied condition of manifest will be in the status of False with the
// reason of ApplyConflict.
// +kubebuilder:default=Update
// +kubebuilder:validation:Enum=Update;CreateOnly;ServerSideApply
// +kubebuilder:validation:Required
// +required
Type UpdateStrategyType `json:"type,omitempty"`
// serverSideApply defines the configuration for server side apply. It is honored only when
// type of updateStrategy is ServerSideApply
// +optional
ServerSideApply *ServerSideApplyConfig `json:"serverSideApply,omitempty"`
}
type UpdateStrategyType string
const (
// Update type means to update resource by an update call.
UpdateStrategyTypeUpdate UpdateStrategyType = "Update"
// CreateOnly type means do not update resource based on current manifest. This should be used only when
// ServerSideApply type is not support on the spoke, and the user on hub would like some other controller
// on the spoke to own the control of the resource.
UpdateStrategyTypeCreateOnly UpdateStrategyType = "CreateOnly"
// ServerSideApply type means to update resource using server side apply with work-controller as the field manager.
// If there is conflict, the related Applied condition of manifest will be in the status of False with the
// reason of ApplyConflict. This type allows another controller on the spoke to control certain field of the resource.
UpdateStrategyTypeServerSideApply UpdateStrategyType = "ServerSideApply"
)
type ServerSideApplyConfig struct {
// Force represents to force apply the manifest.
// +optional
Force bool `json:"force"`
// FieldManager is the manager to apply the resource. It is work-agent by default, but can be other name with work-agent
// as the prefix.
// +kubebuilder:default=work-agent
// +kubebuilder:validation:Pattern=`^work-agent`
// +optional
FieldManager string `json:"fieldManager,omitempty"`
}
// DefaultFieldManager is the default field manager of the manifestwork when the field manager is not set.
const DefaultFieldManager = "work-agent"
type FeedbackRule struct {
// Type defines the option of how status can be returned.
// It can be jsonPaths or wellKnownStatus.
// If the type is JSONPaths, user should specify the jsonPaths field
// If the type is WellKnownStatus, certain common fields of status defined by a rule only
// for types in in k8s.io/api and open-cluster-management/api will be reported,
// If these status fields do not exist, no values will be reported.
// +kubebuilder:validation:Required
// +required
Type FeedBackType `json:"type"`
// JsonPaths defines the json path under status field to be synced.
// +optional
JsonPaths []JsonPath `json:"jsonPaths,omitempty"`
}
// +kubebuilder:validation:Enum=WellKnownStatus;JSONPaths
type FeedBackType string
const (
// WellKnownStatusType represents that values of some common status fields will be returned, which
// is reflected with a hardcoded rule only for types in k8s.io/api and open-cluster-management/api.
WellKnownStatusType FeedBackType = "WellKnownStatus"
// JSONPathsType represents that values of status fields with certain json paths specified will be
// returned
JSONPathsType FeedBackType = "JSONPaths"
)
type JsonPath struct {
// Name represents the alias name for this field
// +kubebuilder:validation:Required
// +required
Name string `json:"name"`
// Version is the version of the Kubernetes resource.
// If it is not specified, the resource with the semantically latest version is
// used to resolve the path.
// +optional
Version string `json:"version,omitempty"`
// Path represents the json path of the field under status.
// The path must point to a field with single value in the type of integer, bool or string.
// If the path points to a non-existing field, no value will be returned.
// If the path points to a structure, map or slice, no value will be returned and the status conddition
// of StatusFeedBackSynced will be set as false.
// Ref to https://kubernetes.io/docs/reference/kubectl/jsonpath/ on how to write a jsonPath.
// +kubebuilder:validation:Required
// +required
Path string `json:"path"`
}
// +kubebuilder:validation:Enum=Foreground;Orphan;SelectivelyOrphan
type DeletePropagationPolicyType string
const (
// DeletePropagationPolicyTypeForeground represents that all the resources in the manifestwork is should
// be fourground deleted.
DeletePropagationPolicyTypeForeground DeletePropagationPolicyType = "Foreground"
// DeletePropagationPolicyTypeOrphan represents that all the resources in the manifestwork is orphaned
// when the manifestwork is deleted.
DeletePropagationPolicyTypeOrphan DeletePropagationPolicyType = "Orphan"
// DeletePropagationPolicyTypeSelectivelyOrphan represents that only selected resources in the manifestwork
// is orphaned when the manifestwork is deleted.
DeletePropagationPolicyTypeSelectivelyOrphan DeletePropagationPolicyType = "SelectivelyOrphan"
)
// SelectivelyOrphan represents a list of resources following orphan deletion stratecy
type SelectivelyOrphan struct {
// orphaningRules defines a slice of orphaningrule.
// Each orphaningrule identifies a single resource included in this manifestwork
// +optional
OrphaningRules []OrphaningRule `json:"orphaningRules,omitempty"`
}
// ResourceIdentifier identifies a single resource included in this manifestwork
type ResourceIdentifier struct {
// Group is the API Group of the Kubernetes resource,
// empty string indicates it is in core group.
// +optional
Group string `json:"group"`
// Resource is the resource name of the Kubernetes resource.
// +kubebuilder:validation:Required
// +required
Resource string `json:"resource"`
// Name is the name of the Kubernetes resource.
// +kubebuilder:validation:Required
// +required
Name string `json:"name"`
// Name is the namespace of the Kubernetes resource, empty string indicates
// it is a cluster scoped resource.
// +optional
Namespace string `json:"namespace"`
}
// OrphaningRule identifies a single resource included in this manifestwork to be orphaned
type OrphaningRule ResourceIdentifier
// ManifestResourceMeta represents the group, version, kind, as well as the group, version, resource, name and namespace of a resoure.
type ManifestResourceMeta struct {
// Ordinal represents the index of the manifest on spec.
// +required
Ordinal int32 `json:"ordinal"`
// Group is the API Group of the Kubernetes resource.
// +optional
Group string `json:"group"`
// Version is the version of the Kubernetes resource.
// +optional
Version string `json:"version"`
// Kind is the kind of the Kubernetes resource.
// +optional
Kind string `json:"kind"`
// Resource is the resource name of the Kubernetes resource.
// +optional
Resource string `json:"resource"`
// Name is the name of the Kubernetes resource.
// +optional
Name string `json:"name"`
// Name is the namespace of the Kubernetes resource.
// +optional
Namespace string `json:"namespace"`
}
// AppliedManifestResourceMeta represents the group, version, resource, name and namespace of a resource.
// Since these resources have been created, they must have valid group, version, resource, namespace, and name.
type AppliedManifestResourceMeta struct {
ResourceIdentifier `json:",inline"`
// Version is the version of the Kubernetes resource.
// +kubebuilder:validation:Required
// +required
Version string `json:"version"`
// UID is set on successful deletion of the Kubernetes resource by controller. The
// resource might be still visible on the managed cluster after this field is set.
// It is not directly settable by a client.
// +optional
UID string `json:"uid,omitempty"`
}
// ManifestWorkStatus represents the current status of managed cluster ManifestWork.
type ManifestWorkStatus struct {
// Conditions contains the different condition statuses for this work.
// Valid condition types are:
// 1. Applied represents workload in ManifestWork is applied successfully on managed cluster.
// 2. Progressing represents workload in ManifestWork is being applied on managed cluster.
// 3. Available represents workload in ManifestWork exists on the managed cluster.
// 4. Degraded represents the current state of workload does not match the desired
// state for a certain period.
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ResourceStatus represents the status of each resource in manifestwork deployed on a
// managed cluster. The Klusterlet agent on managed cluster syncs the condition from the managed cluster to the hub.
// +optional
ResourceStatus ManifestResourceStatus `json:"resourceStatus,omitempty"`
}
// ManifestResourceStatus represents the status of each resource in manifest work deployed on
// managed cluster
type ManifestResourceStatus struct {
// Manifests represents the condition of manifests deployed on managed cluster.
// Valid condition types are:
// 1. Progressing represents the resource is being applied on managed cluster.
// 2. Applied represents the resource is applied successfully on managed cluster.
// 3. Available represents the resource exists on the managed cluster.
// 4. Degraded represents the current state of resource does not match the desired
// state for a certain period.
Manifests []ManifestCondition `json:"manifests,omitempty"`
}
const (
// WorkProgressing represents that the work is in the progress to be
// applied on the managed cluster.
WorkProgressing string = "Progressing"
// WorkApplied represents that the workload defined in work is
// succesfully applied on the managed cluster.
WorkApplied string = "Applied"
// WorkAvailable represents that all resources of the work exists on
// the managed cluster.
WorkAvailable string = "Available"
// WorkDegraded represents that the current state of work does not match
// the desired state for a certain period.
WorkDegraded string = "Degraded"
)
// ManifestCondition represents the conditions of the resources deployed on a
// managed cluster.
type ManifestCondition struct {
// ResourceMeta represents the group, version, kind, name and namespace of a resoure.
// +required
ResourceMeta ManifestResourceMeta `json:"resourceMeta"`
// StatusFeedback represents the values of the feild synced back defined in statusFeedbacks
// +optional
StatusFeedbacks StatusFeedbackResult `json:"statusFeedback,omitempty"`
// Conditions represents the conditions of this resource on a managed cluster.
// +required
Conditions []metav1.Condition `json:"conditions"`
}
// StatusFeedbackResult represents the values of the feild synced back defined in statusFeedbacks
type StatusFeedbackResult struct {
// Values represents the synced value of the interested field.
// +listType:=map
// +listMapKey:=name
// +optional
Values []FeedbackValue `json:"values,omitempty"`
}
type FeedbackValue struct {
// Name represents the alias name for this field. It is the same as what is specified
// in StatuFeedbackRule in the spec.
// +kubebuilder:validation:Required
// +required
Name string `json:"name"`
// Value is the value of the status field.
// The value of the status field can only be integer, string or boolean.
// +kubebuilder:validation:Required
// +required
Value FieldValue `json:"fieldValue"`
}
// FieldValue is the value of the status field.
// The value of the status field can only be integer, string or boolean.
type FieldValue struct {
// Type represents the type of the value, it can be integer, string or boolean.
// +kubebuilder:validation:Required
// +required
Type ValueType `json:"type"`
// Integer is the integer value when type is integer.
// +optional
Integer *int64 `json:"integer,omitempty"`
// String is the string value when type is string.
// +optional
String *string `json:"string,omitempty"`
// Boolean is bool value when type is boolean.
// +optional
Boolean *bool `json:"boolean,omitempty"`
// JsonRaw is a json string when type is a list or object
// +kubebuilder:validation:MaxLength=1024
JsonRaw *string `json:"jsonRaw,omitempty"`
}
// +kubebuilder:validation:Enum=Integer;String;Boolean;JsonRaw
type ValueType string
const (
Integer ValueType = "Integer"
String ValueType = "String"
Boolean ValueType = "Boolean"
JsonRaw ValueType = "JsonRaw"
)
const (
// ManifestProgressing represents that the resource is being applied on the managed cluster
ManifestProgressing string = "Progressing"
// ManifestApplied represents that the resource object is applied
// on the managed cluster.
ManifestApplied string = "Applied"
// ManifestAvailable represents that the resource object exists
// on the managed cluster.
ManifestAvailable string = "Available"
// ManifestDegraded represents that the current state of resource object does not
// match the desired state for a certain period.
ManifestDegraded string = "Degraded"
)
const (
// ManifestWorkFinalizer is the name of the finalizer added to manifestworks. It is used to ensure
// related appliedmanifestwork of a manifestwork are deleted before the manifestwork itself is deleted
ManifestWorkFinalizer = "cluster.open-cluster-management.io/manifest-work-cleanup"
// AppliedManifestWorkFinalizer is the name of the finalizer added to appliedmanifestwork. It is to
// ensure all resource relates to appliedmanifestwork is deleted before appliedmanifestwork itself
// is deleted.
AppliedManifestWorkFinalizer = "cluster.open-cluster-management.io/applied-manifest-work-cleanup"
)
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ManifestWorkList is a collection of manifestworks.
type ManifestWorkList struct {
metav1.TypeMeta `json:",inline"`
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
// Items is a list of manifestworks.
Items []ManifestWork `json:"items"`
}
// +genclient
// +genclient:nonNamespaced
// +kubebuilder:subresource:status
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// AppliedManifestWork represents an applied manifestwork on managed cluster that is placed
// on a managed cluster. An AppliedManifestWork links to a manifestwork on a hub recording resources
// deployed in the managed cluster.
// When the agent is removed from managed cluster, cluster-admin on managed cluster
// can delete appliedmanifestwork to remove resources deployed by the agent.
// The name of the appliedmanifestwork must be in the format of
// {hash of hub's first kube-apiserver url}-{manifestwork name}
type AppliedManifestWork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec represents the desired configuration of AppliedManifestWork.
Spec AppliedManifestWorkSpec `json:"spec,omitempty"`
// Status represents the current status of AppliedManifestWork.
// +optional
Status AppliedManifestWorkStatus `json:"status,omitempty"`
}
// AppliedManifestWorkSpec represents the desired configuration of AppliedManifestWork
type AppliedManifestWorkSpec struct {
// HubHash represents the hash of the first hub kube apiserver to identify which hub
// this AppliedManifestWork links to.
// +required
HubHash string `json:"hubHash"`
// AgentID represents the ID of the work agent who is to handle this AppliedManifestWork.
AgentID string `json:"agentID"`
// ManifestWorkName represents the name of the related manifestwork on the hub.
// +required
ManifestWorkName string `json:"manifestWorkName"`
}
// AppliedManifestWorkStatus represents the current status of AppliedManifestWork
type AppliedManifestWorkStatus struct {
// AppliedResources represents a list of resources defined within the manifestwork that are applied.
// Only resources with valid GroupVersionResource, namespace, and name are suitable.
// An item in this slice is deleted when there is no mapped manifest in manifestwork.Spec or by finalizer.
// The resource relating to the item will also be removed from managed cluster.
// The deleted resource may still be present until the finalizers for that resource are finished.
// However, the resource will not be undeleted, so it can be removed from this list and eventual consistency is preserved.
// +optional
AppliedResources []AppliedManifestResourceMeta `json:"appliedResources,omitempty"`
// EvictionStartTime represents the current appliedmanifestwork will be evicted after a grace period.
// An appliedmanifestwork will be evicted from the managed cluster in the following two scenarios:
// - the manifestwork of the current appliedmanifestwork is missing on the hub, or
// - the appliedmanifestwork hub hash does not match the current hub hash of the work agent.
// +optional
EvictionStartTime *metav1.Time `json:"evictionStartTime,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// AppliedManifestWorkList is a collection of appliedmanifestworks.
type AppliedManifestWorkList struct {
metav1.TypeMeta `json:",inline"`
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
// Items is a list of appliedmanifestworks.
Items []AppliedManifestWork `json:"items"`
}