@@ -20,7 +20,7 @@ import (
20
20
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
21
)
22
22
23
- // GlanceTag is the name of the go field tag in properties structs used to specify the glance property name.
23
+ // GlanceTag is the name of the go field tag in properties structs used to specify the Glance property name.
24
24
const GlanceTag = "glance"
25
25
26
26
// +kubebuilder:validation:MinLength:=1
@@ -244,14 +244,14 @@ type ImageContentSourceDownload struct {
244
244
245
245
// Decompress specifies that the source data must be decompressed with the
246
246
// given compression algorithm before being stored. Specifying Decompress
247
- // will disable the use of glance 's web-download, as web-download cannot
247
+ // will disable the use of Glance 's web-download, as web-download cannot
248
248
// currently deterministically decompress downloaded content.
249
249
// +optional
250
250
Decompress * ImageCompression `json:"decompress,omitempty"`
251
251
252
252
// Hash is a hash which will be used to verify downloaded data, i.e.
253
253
// before any decompression. If not specified, no hash verification will be
254
- // performed. Specifying a Hash will disable the use of glance 's
254
+ // performed. Specifying a Hash will disable the use of Glance 's
255
255
// web-download, as web-download cannot currently deterministically verify
256
256
// the hash of downloaded content.
257
257
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="hash is immutable"
@@ -272,9 +272,9 @@ type ImageHash struct {
272
272
Value string `json:"value"`
273
273
}
274
274
275
- // ImageResourceSpec contains the desired state of a glance image
275
+ // ImageResourceSpec contains the desired state of a Glance image
276
276
type ImageResourceSpec struct {
277
- // Name will be the name of the created glance image. If not specified, the
277
+ // Name will be the name of the created Glance image. If not specified, the
278
278
// name of the Image object will be used.
279
279
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="imageName is immutable"
280
280
// +optional
@@ -308,10 +308,10 @@ type ImageResourceSpec struct {
308
308
Content * ImageContent `json:"content,omitempty"`
309
309
}
310
310
311
- // ImageFilter defines a glance query
311
+ // ImageFilter defines a Glance query
312
312
// +kubebuilder:validation:MinProperties:=1
313
313
type ImageFilter struct {
314
- // Name specifies the name of a glance image
314
+ // Name specifies the name of a Glance image
315
315
// +optional
316
316
// +kubebuilder:validation:MinLength:=1
317
317
// +kubebuilder:validation:MaxLength:=1000
@@ -323,7 +323,7 @@ type ImageFilter struct {
323
323
// +kubebuilder:validation:MinProperties:=1
324
324
// +kubebuilder:validation:MaxProperties:=1
325
325
type ImageImport struct {
326
- // ID contains the unique identifier of an existing glance image. Note that
326
+ // ID contains the unique identifier of an existing Glance image. Note that
327
327
// when specifying an image import by ID, the image MUST already exist. The
328
328
// Image will enter an error state if the image does not exist.
329
329
// +optional
@@ -351,7 +351,7 @@ type ImageSpec struct {
351
351
// +optional
352
352
Import * ImageImport `json:"import,omitempty"`
353
353
354
- // Resource specifies the desired state of the glance image.
354
+ // Resource specifies the desired state of the Glance image.
355
355
//
356
356
// Resource may not be specified if the management policy is `unmanaged`.
357
357
//
@@ -377,14 +377,14 @@ type ImageSpec struct {
377
377
CloudCredentialsRef CloudCredentialsReference `json:"cloudCredentialsRef"`
378
378
}
379
379
380
- // ImageResourceStatus represents the observed state of a glance image
380
+ // ImageResourceStatus represents the observed state of a Glance image
381
381
type ImageResourceStatus struct {
382
- // Status is the image status as reported by glance
382
+ // Status is the image status as reported by Glance
383
383
// +optional
384
384
Status * string `json:"status,omitempty"`
385
385
386
- // Hash is the hash of the image data published by glance . Note that this is
387
- // a hash of the data stored internally by glance , which will have been
386
+ // Hash is the hash of the image data published by Glance . Note that this is
387
+ // a hash of the data stored internally by Glance , which will have been
388
388
// decompressed and potentially format converted depending on server-side
389
389
// configuration which is not visible to clients. It is expected that this
390
390
// hash will usually differ from the download hash.
@@ -405,11 +405,11 @@ type ImageStatus struct {
405
405
// Conditions represents the observed status of the object.
406
406
// Known .status.conditions.type are: "Available", "Progressing"
407
407
//
408
- // Available represents the availability of the glance image. If it is
409
- // true then the image is ready for use in glance , and its hash has been
408
+ // Available represents the availability of the Glance image. If it is
409
+ // true then the image is ready for use in Glance , and its hash has been
410
410
// verified.
411
411
//
412
- // Progressing indicates the state of the glance image does not currently
412
+ // Progressing indicates the state of the Glance image does not currently
413
413
// reflect the desired state, but that reconciliation is progressing.
414
414
// Progressing will be False either because the desired state has been
415
415
// achieved, or some terminal error prevents it from being achieved and the
@@ -421,11 +421,11 @@ type ImageStatus struct {
421
421
// +listMapKey=type
422
422
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
423
423
424
- // ID is the unique identifier of the glance image
424
+ // ID is the unique identifier of the Glance image
425
425
// +optional
426
426
ID * string `json:"id,omitempty"`
427
427
428
- // Resource contains the observed state of the glance image
428
+ // Resource contains the observed state of the Glance image
429
429
// +optional
430
430
Resource * ImageResourceStatus `json:"resource,omitempty"`
431
431
0 commit comments