Skip to content

Commit aa6f3b4

Browse files
committed
api update by KubeVirt Prow build 1986008896640126976
1 parent c727cf1 commit aa6f3b4

File tree

6 files changed

+90
-2
lines changed

6 files changed

+90
-2
lines changed

snapshot/v1alpha1/deepcopy_generated.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/v1alpha1/types.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,18 @@ const (
8080
VMSnapshotOnlineSnapshotIndication Indication = "Online"
8181
VMSnapshotNoGuestAgentIndication Indication = "NoGuestAgent"
8282
VMSnapshotGuestAgentIndication Indication = "GuestAgent"
83+
VMSnapshotQuiesceFailedIndication Indication = "QuiesceFailed"
84+
VMSnapshotPausedIndication Indication = "Paused"
8385
)
8486

87+
// SourceIndication provides an indication of the source VM with its description message
88+
type SourceIndication struct {
89+
// Indication is the indication type
90+
Indication Indication `json:"indication"`
91+
// Message provides a description message of the indication
92+
Message string `json:"message"`
93+
}
94+
8595
// VirtualMachineSnapshotPhase is the current phase of the VirtualMachineSnapshot
8696
type VirtualMachineSnapshotPhase string
8797

@@ -118,10 +128,15 @@ type VirtualMachineSnapshotStatus struct {
118128
// +optional
119129
Conditions []Condition `json:"conditions,omitempty"`
120130

131+
// Deprecated: Use SourceIndications instead. This field will be removed in a future version.
121132
// +optional
122133
// +listType=set
123134
Indications []Indication `json:"indications,omitempty"`
124135

136+
// +optional
137+
// +listType=atomic
138+
SourceIndications []SourceIndication `json:"sourceIndications,omitempty"`
139+
125140
// +optional
126141
SnapshotVolumes *SnapshotVolumesLists `json:"snapshotVolumes,omitempty"`
127142
}

snapshot/v1alpha1/types_swagger_generated.go

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/v1beta1/deepcopy_generated.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snapshot/v1beta1/types.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ const (
8585
VMSnapshotPausedIndication Indication = "Paused"
8686
)
8787

88+
// SourceIndication provides an indication of the source VM with its description message
89+
type SourceIndication struct {
90+
// Indication is the indication type
91+
Indication Indication `json:"indication"`
92+
// Message provides a description message of the indication
93+
Message string `json:"message"`
94+
}
95+
8896
// VirtualMachineSnapshotPhase is the current phase of the VirtualMachineSnapshot
8997
type VirtualMachineSnapshotPhase string
9098

@@ -122,10 +130,15 @@ type VirtualMachineSnapshotStatus struct {
122130
// +listType=atomic
123131
Conditions []Condition `json:"conditions,omitempty"`
124132

133+
// Deprecated: Use SourceIndications instead. This field will be removed in a future version.
125134
// +optional
126135
// +listType=set
127136
Indications []Indication `json:"indications,omitempty"`
128137

138+
// +optional
139+
// +listType=atomic
140+
SourceIndications []SourceIndication `json:"sourceIndications,omitempty"`
141+
129142
// +optional
130143
SnapshotVolumes *SnapshotVolumesLists `json:"snapshotVolumes,omitempty"`
131144
}

snapshot/v1beta1/types_swagger_generated.go

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)