Skip to content

Commit

Permalink
Update api/core/v1alpha1/clustercatalog_types.go
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
LalatenduMohanty and joelanford authored Oct 3, 2024
1 parent 9b9a7af commit 22cedcb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/core/v1alpha1/clustercatalog_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ type ClusterCatalogSpec struct {
Priority int32 `json:"priority"`

// Availability is an optional field that allows users to define whether the ClusterCatalog is utilized by the operator-controller.
// If set to "Enabled", the catalog will be used for updates, serving contents, and package installations.
// If set to "Disabled", the catalog will be ignored by the operator-controller, meaning it will not be used for any operations.
// If set to "Enabled", catalogd will attempt to unpack and serve the catalog specified in the source.
// If set to "Disabled", catalogd will stop serving the catalog and pause attempts to pull the catalog specified in the source.
//

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

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
// Clients MUST tolerate the presence of (and SHOULD NOT attempt to query) catalogs with availability set to Disabled.
// +kubebuilder:validation:Enum="Disabled";"Enabled"
// +kubebuilder:default="Enabled"
// +optional
Expand Down

0 comments on commit 22cedcb

Please sign in to comment.