Skip to content

Commit 47063b6

Browse files
committed
ORC: Consistent capitalisation of Glance in godocs
1 parent 533f393 commit 47063b6

File tree

3 files changed

+46
-46
lines changed

3 files changed

+46
-46
lines changed

orc/api/v1alpha1/image_types.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2121
)
2222

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.
2424
const GlanceTag = "glance"
2525

2626
// +kubebuilder:validation:MinLength:=1
@@ -244,14 +244,14 @@ type ImageContentSourceDownload struct {
244244

245245
// Decompress specifies that the source data must be decompressed with the
246246
// 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
248248
// currently deterministically decompress downloaded content.
249249
// +optional
250250
Decompress *ImageCompression `json:"decompress,omitempty"`
251251

252252
// Hash is a hash which will be used to verify downloaded data, i.e.
253253
// 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
255255
// web-download, as web-download cannot currently deterministically verify
256256
// the hash of downloaded content.
257257
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="hash is immutable"
@@ -272,9 +272,9 @@ type ImageHash struct {
272272
Value string `json:"value"`
273273
}
274274

275-
// ImageResourceSpec contains the desired state of a glance image
275+
// ImageResourceSpec contains the desired state of a Glance image
276276
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
278278
// name of the Image object will be used.
279279
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="imageName is immutable"
280280
// +optional
@@ -308,10 +308,10 @@ type ImageResourceSpec struct {
308308
Content *ImageContent `json:"content,omitempty"`
309309
}
310310

311-
// ImageFilter defines a glance query
311+
// ImageFilter defines a Glance query
312312
// +kubebuilder:validation:MinProperties:=1
313313
type ImageFilter struct {
314-
// Name specifies the name of a glance image
314+
// Name specifies the name of a Glance image
315315
// +optional
316316
// +kubebuilder:validation:MinLength:=1
317317
// +kubebuilder:validation:MaxLength:=1000
@@ -323,7 +323,7 @@ type ImageFilter struct {
323323
// +kubebuilder:validation:MinProperties:=1
324324
// +kubebuilder:validation:MaxProperties:=1
325325
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
327327
// when specifying an image import by ID, the image MUST already exist. The
328328
// Image will enter an error state if the image does not exist.
329329
// +optional
@@ -351,7 +351,7 @@ type ImageSpec struct {
351351
// +optional
352352
Import *ImageImport `json:"import,omitempty"`
353353

354-
// Resource specifies the desired state of the glance image.
354+
// Resource specifies the desired state of the Glance image.
355355
//
356356
// Resource may not be specified if the management policy is `unmanaged`.
357357
//
@@ -377,14 +377,14 @@ type ImageSpec struct {
377377
CloudCredentialsRef CloudCredentialsReference `json:"cloudCredentialsRef"`
378378
}
379379

380-
// ImageResourceStatus represents the observed state of a glance image
380+
// ImageResourceStatus represents the observed state of a Glance image
381381
type ImageResourceStatus struct {
382-
// Status is the image status as reported by glance
382+
// Status is the image status as reported by Glance
383383
// +optional
384384
Status *string `json:"status,omitempty"`
385385

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
388388
// decompressed and potentially format converted depending on server-side
389389
// configuration which is not visible to clients. It is expected that this
390390
// hash will usually differ from the download hash.
@@ -405,11 +405,11 @@ type ImageStatus struct {
405405
// Conditions represents the observed status of the object.
406406
// Known .status.conditions.type are: "Available", "Progressing"
407407
//
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
410410
// verified.
411411
//
412-
// Progressing indicates the state of the glance image does not currently
412+
// Progressing indicates the state of the Glance image does not currently
413413
// reflect the desired state, but that reconciliation is progressing.
414414
// Progressing will be False either because the desired state has been
415415
// achieved, or some terminal error prevents it from being achieved and the
@@ -421,11 +421,11 @@ type ImageStatus struct {
421421
// +listMapKey=type
422422
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
423423

424-
// ID is the unique identifier of the glance image
424+
// ID is the unique identifier of the Glance image
425425
// +optional
426426
ID *string `json:"id,omitempty"`
427427

428-
// Resource contains the observed state of the glance image
428+
// Resource contains the observed state of the Glance image
429429
// +optional
430430
Resource *ImageResourceStatus `json:"resource,omitempty"`
431431

orc/config/crd/bases/openstack.k-orc.cloud_images.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ spec:
9494
minProperties: 1
9595
properties:
9696
name:
97-
description: Name specifies the name of a glance image
97+
description: Name specifies the name of a Glance image
9898
maxLength: 1000
9999
minLength: 1
100100
type: string
101101
type: object
102102
id:
103103
description: |-
104-
ID contains the unique identifier of an existing glance image. Note that
104+
ID contains the unique identifier of an existing Glance image. Note that
105105
when specifying an image import by ID, the image MUST already exist. The
106106
Image will enter an error state if the image does not exist.
107107
format: uuid
@@ -139,7 +139,7 @@ spec:
139139
rule: self == oldSelf
140140
resource:
141141
description: |-
142-
Resource specifies the desired state of the glance image.
142+
Resource specifies the desired state of the Glance image.
143143
144144
Resource may not be specified if the management policy is `unmanaged`.
145145
@@ -195,7 +195,7 @@ spec:
195195
description: |-
196196
Decompress specifies that the source data must be decompressed with the
197197
given compression algorithm before being stored. Specifying Decompress
198-
will disable the use of glance's web-download, as web-download cannot
198+
will disable the use of Glance's web-download, as web-download cannot
199199
currently deterministically decompress downloaded content.
200200
enum:
201201
- xz
@@ -206,7 +206,7 @@ spec:
206206
description: |-
207207
Hash is a hash which will be used to verify downloaded data, i.e.
208208
before any decompression. If not specified, no hash verification will be
209-
performed. Specifying a Hash will disable the use of glance's
209+
performed. Specifying a Hash will disable the use of Glance's
210210
web-download, as web-download cannot currently deterministically verify
211211
the hash of downloaded content.
212212
properties:
@@ -252,7 +252,7 @@ spec:
252252
rule: self == oldSelf
253253
name:
254254
description: |-
255-
Name will be the name of the created glance image. If not specified, the
255+
Name will be the name of the created Glance image. If not specified, the
256256
name of the Image object will be used.
257257
type: string
258258
x-kubernetes-validations:
@@ -465,11 +465,11 @@ spec:
465465
Conditions represents the observed status of the object.
466466
Known .status.conditions.type are: "Available", "Progressing"
467467
468-
Available represents the availability of the glance image. If it is
469-
true then the image is ready for use in glance, and its hash has been
468+
Available represents the availability of the Glance image. If it is
469+
true then the image is ready for use in Glance, and its hash has been
470470
verified.
471471
472-
Progressing indicates the state of the glance image does not currently
472+
Progressing indicates the state of the Glance image does not currently
473473
reflect the desired state, but that reconciliation is progressing.
474474
Progressing will be False either because the desired state has been
475475
achieved, or some terminal error prevents it from being achieved and the
@@ -537,15 +537,15 @@ spec:
537537
has attempted to download the image contents
538538
type: integer
539539
id:
540-
description: ID is the unique identifier of the glance image
540+
description: ID is the unique identifier of the Glance image
541541
type: string
542542
resource:
543-
description: Resource contains the observed state of the glance image
543+
description: Resource contains the observed state of the Glance image
544544
properties:
545545
hash:
546546
description: |-
547-
Hash is the hash of the image data published by glance. Note that this is
548-
a hash of the data stored internally by glance, which will have been
547+
Hash is the hash of the image data published by Glance. Note that this is
548+
a hash of the data stored internally by Glance, which will have been
549549
decompressed and potentially format converted depending on server-side
550550
configuration which is not visible to clients. It is expected that this
551551
hash will usually differ from the download hash.
@@ -575,7 +575,7 @@ spec:
575575
format: int64
576576
type: integer
577577
status:
578-
description: Status is the image status as reported by glance
578+
description: Status is the image status as reported by Glance
579579
type: string
580580
virtualSizeB:
581581
description: VirtualSizeB is the size of the disk the image data

orc/hack/codegen/openapi/zz_generated.openapi.go

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

0 commit comments

Comments
 (0)