Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Lanford <[email protected]>
Signed-off-by: Per Goncalves da Silva <[email protected]>
  • Loading branch information
2 people authored and Per Goncalves da Silva committed Sep 14, 2024
1 parent ff428ab commit 86aee0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 6 additions & 5 deletions api/core/v1alpha1/clustercatalog_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ type ClusterCatalogSpec struct {
//
// source:
// type: image
// image: quay.io/operatorhubio/catalog:latest
//
// image:
// ref: quay.io/operatorhubio/catalog:latest
//

Check failure on line 80 in api/core/v1alpha1/clustercatalog_types.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
// For more information on FBC, see https://olm.operatorframework.io/docs/reference/file-based-catalogs/#docs
Source CatalogSource `json:"source"`

// priority is an optional field that allows the user to define a priority for a ClusterCatalog.
// A ClusterCatalog's priority is used by clients as a tie-breaker between ClusterCatalogs that meet the client's requirements.
// For example, in the case where multiple ClusterCatalogs provide the same bundle.
// A higher number means higher priority.
// A higher number means higher priority. Negative number as also accepted.
// When omitted, the default priority is 0.
// +kubebuilder:default:=0
// +optional
Expand Down Expand Up @@ -135,7 +136,7 @@ type ClusterCatalogStatus struct {
// ClusterCatalog's generation, which is updated on mutation by the API Server.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// LastUnpacked represents the time when the
// lastUnpacked represents the time when the
// ClusterCatalog object was last unpacked.
// +optional
LastUnpacked metav1.Time `json:"lastUnpacked,omitempty"`
Expand Down Expand Up @@ -183,7 +184,7 @@ type ResolvedImageSource struct {
ResolvedRef string `json:"resolvedRef"`
// lastPollAttempt is the time when the source image was last polled for new content.
LastPollAttempt metav1.Time `json:"lastPollAttempt"`
// LastUnpacked is the last time when the Catalog contents were successfully unpacked.
// lastUnpacked is the last time when the Catalog contents were successfully unpacked.
LastUnpacked metav1.Time `json:"lastUnpacked"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
priority is an optional field that allows the user to define a priority for a ClusterCatalog.
A ClusterCatalog's priority is used by clients as a tie-breaker between ClusterCatalogs that meet the client's requirements.
For example, in the case where multiple ClusterCatalogs provide the same bundle.
A higher number means higher priority.
A higher number means higher priority. Negative number as also accepted.
When omitted, the default priority is 0.
format: int32
type: integer
Expand All @@ -66,7 +66,8 @@ spec:
source:
type: image
image: quay.io/operatorhubio/catalog:latest
image:
ref: quay.io/operatorhubio/catalog:latest
For more information on FBC, see https://olm.operatorframework.io/docs/reference/file-based-catalogs/#docs
properties:
Expand Down Expand Up @@ -206,7 +207,7 @@ spec:
type: string
lastUnpacked:
description: |-
LastUnpacked represents the time when the
lastUnpacked represents the time when the
ClusterCatalog object was last unpacked.
format: date-time
type: string
Expand Down Expand Up @@ -240,7 +241,7 @@ spec:
format: date-time
type: string
lastUnpacked:
description: LastUnpacked is the last time when the Catalog
description: lastUnpacked is the last time when the Catalog
contents were successfully unpacked.
format: date-time
type: string
Expand Down

0 comments on commit 86aee0a

Please sign in to comment.