You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: orc/api/v1alpha1/image_types.go
+1-138Lines changed: 1 addition & 138 deletions
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,6 @@ limitations under the License.
16
16
17
17
package v1alpha1
18
18
19
-
import (
20
-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
-
)
22
-
23
19
// GlanceTag is the name of the go field tag in properties structs used to specify the Glance property name.
24
20
constGlanceTag="glance"
25
21
@@ -318,65 +314,6 @@ type ImageFilter struct {
318
314
Name*string`json:"name,omitempty"`
319
315
}
320
316
321
-
// ImageImport specifies an existing image which will be imported instead of
322
-
// creating a new image
323
-
// +kubebuilder:validation:MinProperties:=1
324
-
// +kubebuilder:validation:MaxProperties:=1
325
-
typeImageImportstruct {
326
-
// ID contains the unique identifier of an existing Glance image. Note that
327
-
// when specifying an image import by ID, the image MUST already exist. The
328
-
// Image will enter an error state if the image does not exist.
329
-
// +optional
330
-
// +kubebuilder:validation:Format:=uuid
331
-
ID*string`json:"id,omitempty"`
332
-
333
-
// Filter contains an image query which is expected to return a single
334
-
// result. The controller will continue to retry if filter returns no
335
-
// results. If filter returns multiple results the controller will set an
336
-
// error state and will not continue to retry.
337
-
// +optional
338
-
Filter*ImageFilter`json:"filter,omitempty"`
339
-
}
340
-
341
-
// ImageSpec defines the desired state of an Image.
342
-
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'managed' ? has(self.resource) : true",message="resource must be specified when policy is managed"
343
-
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'managed' ? !has(self.__import__) : true",message="import may not be specified when policy is managed"
344
-
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'unmanaged' ? !has(self.resource) : true",message="resource may not be specified when policy is unmanaged"
345
-
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'unmanaged' ? has(self.__import__) : true",message="import must be specified when policy is unmanaged"
346
-
// +kubebuilder:validation:XValidation:rule="has(self.managedOptions) ? self.managementPolicy == 'managed' : true",message="managedOptions may only be provided when policy is managed"
347
-
// +kubebuilder:validation:XValidation:rule="!has(self.__import__) ? has(self.resource.content) : true",message="resource content must be specified when not importing"
348
-
typeImageSpecstruct {
349
-
// Import refers to an existing image which will be imported instead of
350
-
// creating a new image.
351
-
// +optional
352
-
Import*ImageImport`json:"import,omitempty"`
353
-
354
-
// Resource specifies the desired state of the Glance image.
355
-
//
356
-
// Resource may not be specified if the management policy is `unmanaged`.
357
-
//
358
-
// Resource must be specified when the management policy is `managed`.
// +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of image"
448
-
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Available')].message",description="Message describing current availability status"
449
-
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation"
0 commit comments