-
Notifications
You must be signed in to change notification settings - Fork 250
/
types_swagger_generated.go
187 lines (163 loc) · 10.9 KB
/
types_swagger_generated.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
// Code generated by swagger-doc. DO NOT EDIT.
package v1beta1
func (DataVolume) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolume is an abstraction on top of PersistentVolumeClaims to allow easy population of those PersistentVolumeClaims with relation to VirtualMachines\n+genclient\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object\n+kubebuilder:object:root=true\n+kubebuilder:storageversion\n+kubebuilder:resource:shortName=dv;dvs,categories=all\n+kubebuilder:printcolumn:name=\"Phase\",type=\"string\",JSONPath=\".status.phase\",description=\"The phase the data volume is in\"\n+kubebuilder:printcolumn:name=\"Progress\",type=\"string\",JSONPath=\".status.progress\",description=\"Transfer progress in percentage if known, N/A otherwise\"\n+kubebuilder:printcolumn:name=\"Restarts\",type=\"integer\",JSONPath=\".status.restartCount\",description=\"The number of times the transfer has been restarted.\"\n+kubebuilder:printcolumn:name=\"Age\",type=\"date\",JSONPath=\".metadata.creationTimestamp\"",
}
}
func (DataVolumeSpec) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSpec defines the DataVolume type specification",
"source": "Source is the src of the data for the requested DataVolume",
"pvc": "PVC is the PVC specification",
"contentType": "DataVolumeContentType options: \"kubevirt\", \"archive\"\n+kubebuilder:validation:Enum=\"kubevirt\";\"archive\"",
}
}
func (DataVolumeSource) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSource represents the source for our Data Volume, this can be HTTP, Imageio, S3, Registry or an existing PVC",
}
}
func (DataVolumeSourcePVC) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC",
"namespace": "The namespace of the source PVC",
"name": "The name of the source PVC",
}
}
func (DataVolumeBlankImage) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC",
}
}
func (DataVolumeSourceUpload) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source",
}
}
func (DataVolumeSourceS3) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source",
"url": "URL is the url of the S3 source",
"secretRef": "SecretRef provides the secret reference needed to access the S3 source",
}
}
func (DataVolumeSourceRegistry) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source",
"url": "URL is the url of the Docker registry source",
"secretRef": "SecretRef provides the secret reference needed to access the Registry source",
"certConfigMap": "CertConfigMap provides a reference to the Registry certs",
}
}
func (DataVolumeSourceHTTP) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs",
"url": "URL is the URL of the http(s) endpoint",
"secretRef": "SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded\n+optional",
"certConfigMap": "CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate\n+optional",
}
}
func (DataVolumeSourceImageIO) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source",
"url": "URL is the URL of the ovirt-engine",
"diskId": "DiskID provides id of a disk to be imported",
"secretRef": "SecretRef provides the secret reference needed to access the ovirt-engine",
"certConfigMap": "CertConfigMap provides a reference to the CA cert",
}
}
func (DataVolumeSourceVDDK) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source",
"url": "URL is the URL of the vCenter or ESXi host with the VM to migrate",
"uuid": "UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi",
"backingFile": "BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi",
"thumbprint": "Thumbprint is the certificate thumbprint of the vCenter or ESXi host",
"secretRef": "SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host",
}
}
func (DataVolumeStatus) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeStatus contains the current status of the DataVolume",
"phase": "Phase is the current phase of the data volume",
"restartCount": "RestartCount is the number of times the pod populating the DataVolume has restarted",
}
}
func (DataVolumeList) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeList provides the needed parameters to do request a list of Data Volumes from the system\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object",
"items": "Items provides a list of DataVolumes",
}
}
func (DataVolumeCondition) SwaggerDoc() map[string]string {
return map[string]string{
"": "DataVolumeCondition represents the state of a data volume condition.",
}
}
func (CDI) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDI is the CDI Operator CRD\n+genclient\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object\n+kubebuilder:object:root=true\n+kubebuilder:storageversion\n+kubebuilder:resource:shortName=cdi;cdis,scope=Cluster\n+kubebuilder:printcolumn:name=\"Age\",type=\"date\",JSONPath=\".metadata.creationTimestamp\"\n+kubebuilder:printcolumn:name=\"Phase\",type=\"string\",JSONPath=\".status.phase\"",
"status": "+optional",
}
}
func (CDISpec) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDISpec defines our specification for the CDI installation",
"imagePullPolicy": "+kubebuilder:validation:Enum=Always;IfNotPresent;Never\nPullPolicy describes a policy for if/when to pull a container image",
"uninstallStrategy": "+kubebuilder:validation:Enum=RemoveWorkloads;BlockUninstallIfWorkloadsExist\nCDIUninstallStrategy defines the state to leave CDI on uninstall",
"infra": "Rules on which nodes CDI infrastructure pods will be scheduled",
"workload": "Restrict on which nodes CDI workload pods will be scheduled",
}
}
func (CDIStatus) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDIStatus defines the status of the CDI installation",
"conditions": "A list of current conditions of the CDI resource",
"operatorVersion": "The version of the CDI resource as defined by the operator",
"targetVersion": "The desired version of the CDI resource",
"observedVersion": "The observed version of the CDI resource",
}
}
func (NodePlacement) SwaggerDoc() map[string]string {
return map[string]string{
"": "NodePlacement describes CDI node scheduling configuration.",
"nodeSelector": "nodeSelector is the node selector applied to the relevant kind of pods\nIt specifies a map of key-value pairs: for the pod to be eligible to run on a node,\nthe node must have each of the indicated key-value pairs as labels\n(it can have additional labels as well).\nSee https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector\n+kubebuilder:validation:Optional\n+optional",
"affinity": "affinity enables pod affinity/anti-affinity placement expanding the types of constraints\nthat can be expressed with nodeSelector.\naffinity is going to be applied to the relevant kind of pods in parallel with nodeSelector\nSee https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity\n+kubebuilder:validation:Optional\n+optional",
"tolerations": "tolerations is a list of tolerations applied to the relevant kind of pods\nSee https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for more info.\nThese are additional tolerations other than default ones.\n+kubebuilder:validation:Optional\n+optional",
}
}
func (CDIList) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDIList provides the needed parameters to do request a list of CDIs from the system\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object",
"items": "Items provides a list of CDIs",
}
}
func (CDIConfig) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDIConfig provides a user configuration for CDI\n+genclient\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object\n+kubebuilder:object:root=true\n+kubebuilder:storageversion\n+kubebuilder:resource:scope=Cluster",
}
}
func (CDIConfigSpec) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDIConfigSpec defines specification for user configuration",
"uploadProxyURLOverride": "Override the URL used when uploading to a DataVolume",
"scratchSpaceStorageClass": "Override the storage class to used for scratch space during transfer operations. The scratch space storage class is determined in the following order: 1. value of scratchSpaceStorageClass, if that doesn't exist, use the default storage class, if there is no default storage class, use the storage class of the DataVolume, if no storage class specified, use no storage class for scratch space",
"podResourceRequirements": "ResourceRequirements describes the compute resource requirements.",
"featureGates": "FeatureGates are a list of specific enabled feature gates",
}
}
func (CDIConfigStatus) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDIConfigStatus provides the most recently observed status of the CDI Config resource",
"uploadProxyURL": "The calculated upload proxy URL",
"scratchSpaceStorageClass": "The calculated storage class to be used for scratch space",
"defaultPodResourceRequirements": "ResourceRequirements describes the compute resource requirements.",
}
}
func (CDIConfigList) SwaggerDoc() map[string]string {
return map[string]string{
"": "CDIConfigList provides the needed parameters to do request a list of CDIConfigs from the system\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object",
"items": "Items provides a list of CDIConfigs",
}
}